Skip to content

Commit

Permalink
Fix error GraphQL introspection is not allowed - resolves #774
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Jul 31, 2023
1 parent 068882e commit 5e33234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/WebserviceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function webonyxAction(
$configAllowIntrospection = $config['graphql']['allow_introspection'];
}

$disableIntrospection = !$configAllowIntrospection || (isset($configuration->getSecurityConfig()['disableIntrospection']) && $configuration->getSecurityConfig()['disableIntrospection']);
$disableIntrospection = !($configAllowIntrospection || $configuration->getSecurityConfig()['disableIntrospection'] ?? false);

Check failure on line 199 in src/Controller/WebserviceController.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, true)

Expression on left side of ?? is not nullable.

Check failure on line 199 in src/Controller/WebserviceController.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.0.0, true, true)

Expression on left side of ?? is not nullable.

DocumentValidator::addRule(new DisableIntrospection((int)$disableIntrospection));

Expand Down

0 comments on commit 5e33234

Please sign in to comment.