You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -256,11 +256,14 @@ public function process(ContainerBuilder $container): void
256
256
$customNotMappedTypes = [];
257
257
foreach ($taggedServicesas$id => $tags) {
258
258
foreach ($tagsas$attributes) {
259
-
if (isset($attributes["class"])) {
260
-
$phpClass = $attributes["class"];
261
-
if (!class_exists($phpClass)) {
259
+
\assert(\is_array($attributes));
260
+
261
+
if (isset($attributes['class']) && is_string($attributes['class'])) {
262
+
$phpClass = $attributes['class'];
263
+
if (false === class_exists($phpClass)) {
262
264
thrownew \RuntimeException(sprintf('The class attribute of the graphql.output_type annotation of the %s service must point to an existing PHP class. Value passed: %s', $id, $phpClass));
263
265
}
266
+
264
267
$customTypes[$phpClass] = newReference($id);
265
268
} else {
266
269
$customNotMappedTypes[] = newReference($id);
@@ -308,6 +311,8 @@ private function registerController(string $controllerClassName, ContainerBuilde
if (!$contextinstanceof SymfonyRequestContextInterface) {
22
22
thrownewGraphQLException('Cannot type-hint on a Symfony Request object in your query/mutation/field. The request context must implement SymfonyRequestContextInterface.');
0 commit comments