We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function warmUp($cacheDir): void |
| 40 | 40 | { |
| 41 | 41 | if (!$this->compiled) { |
| 42 | - return; |
|
| 42 | + return; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | // use warm up cache dir if type generator cache dir not already explicitly declare |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | $unionConfiguration['resolveType'] = self::formatExpression($unionAnnotation->resolveType); |
| 492 | 492 | } else { |
| 493 | 493 | if (!isset($methods['resolveType'])) { |
| 494 | - throw new InvalidArgumentException(\sprintf('The annotation @Union has no "resolveType" attribute and the related class has no "resolveType()" public static method. You need to define of them.')); |
|
| 494 | + throw new InvalidArgumentException(\sprintf('The annotation @Union has no "resolveType" attribute and the related class has no "resolveType()" public static method. You need to define of them.')); |
|
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | $method = $methods['resolveType']['method']; |
@@ -873,7 +873,7 @@ discard block |
||
| 873 | 873 | $type = self::resolveTypeFromClass($target, ['type']); |
| 874 | 874 | |
| 875 | 875 | if (!$type) { |
| 876 | - throw new \RuntimeException(\sprintf('Unable to auto-guess GraphQL type from Doctrine target class "%s" (check if the target class is a GraphQL type itself (with a @GQL\Type annotation).', $target)); |
|
| 876 | + throw new \RuntimeException(\sprintf('Unable to auto-guess GraphQL type from Doctrine target class "%s" (check if the target class is a GraphQL type itself (with a @GQL\Type annotation).', $target)); |
|
| 877 | 877 | } |
| 878 | 878 | |
| 879 | 879 | $isMultiple = $associationAnnotations[\get_class($associationAnnotation)]; |
@@ -496,7 +496,7 @@ |
||
| 496 | 496 | |
| 497 | 497 | $method = $methods['resolveType']['method']; |
| 498 | 498 | |
| 499 | - if (!$method->isStatic() ||!$method->isPublic()) { |
|
| 499 | + if (!$method->isStatic() || !$method->isPublic()) { |
|
| 500 | 500 | throw new InvalidArgumentException(\sprintf('The "resolveType()" method on class must be static and public. Or you must define a "resolveType" attribute on the @Union annotation.')); |
| 501 | 501 | } |
| 502 | 502 | |