Skip to content

Commit 689840b

Browse files
committed
Review fixes
1 parent 2634b0e commit 689840b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Annotation/Mutation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
final class Mutation extends Field
1414
{
1515
/**
16-
* The target types to attach this mutation to (usefull when multiple schemas are allowed).
16+
* The target types to attach this mutation to (useful when multiple schemas are allowed).
1717
*
1818
* @var array<string>
1919
*/

src/Config/Parser/AnnotationParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ private static function getGraphQLFieldsFromProviders(GraphClass $graphClass, st
679679
if (null === $annotationTargets) {
680680
if ($isDefaultTarget) {
681681
$annotationTargets = [$targetType];
682-
if (!($annotation instanceof $expectedAnnotation)) {
682+
if (!$annotation instanceof $expectedAnnotation) {
683683
continue;
684684
}
685685
} else {
@@ -695,7 +695,7 @@ private static function getGraphQLFieldsFromProviders(GraphClass $graphClass, st
695695
continue;
696696
}
697697

698-
if (!($annotation instanceof $expectedAnnotation)) {
698+
if (!$annotation instanceof $expectedAnnotation) {
699699
if (GQL\Mutation::class == $expectedAnnotation) {
700700
$message = sprintf('The provider "%s" try to add a query field on type "%s" (through @Query on method "%s") but "%s" is a mutation.', $providerMetadata->getName(), $targetType, $method->getName(), $targetType);
701701
} else {

0 commit comments

Comments
 (0)