diff --git a/src/Schema/Type/TypeReference.php b/src/Schema/Type/TypeReference.php index fc1fac12..74280ce6 100644 --- a/src/Schema/Type/TypeReference.php +++ b/src/Schema/Type/TypeReference.php @@ -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); }