diff --git a/src/Analysers/AttributeAnnotationFactory.php b/src/Analysers/AttributeAnnotationFactory.php index f4f8743f..c158e78a 100644 --- a/src/Analysers/AttributeAnnotationFactory.php +++ b/src/Analysers/AttributeAnnotationFactory.php @@ -133,7 +133,7 @@ public function build(\Reflector $reflector, Context $context): array // Attachables can always be nested (unless explicitly restricted) return ($isAttachable && $isParentAllowed) - || ($annotation->getRoot() != $possibleParent->getRoot() && $explicitParent); + || ($annotation->getRoot() !== $possibleParent->getRoot() && $explicitParent); }; $annotationsWithoutParent = [];