Skip to content

Commit

Permalink
BUGFIX: hasWrapper() unnecessarily popping the path
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Sep 6, 2021
1 parent d2a0318 commit 0b7eff1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Schema/Type/TypeReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ private function hasWrapper(string $nodeKind): bool
if (empty($path)) {
return false;
}
// Remove the named type
array_pop($path);

return in_array($nodeKind, $path);
}
Expand Down

0 comments on commit 0b7eff1

Please sign in to comment.