diff --git a/src/Hooks/NotEmptyHooks.php b/src/Hooks/NotEmptyHooks.php index e88ddbf..d5282f1 100644 --- a/src/Hooks/NotEmptyHooks.php +++ b/src/Hooks/NotEmptyHooks.php @@ -63,7 +63,7 @@ class NotEmptyHooks implements AfterExpressionAnalysisInterface $type->removeType('null'); } - if($type->isSingle()){ + if(!$type->isSingle()){ //we removed null but the type is still not single return true; }