mirror of
https://github.com/danog/psalm-not-empty.git
synced 2024-11-26 20:04:54 +01:00
fix bug(for real)
This commit is contained in:
parent
1615f8c447
commit
f41818eedf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user