mirror of
https://github.com/danog/psalm-not-empty.git
synced 2024-11-30 04:29:13 +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');
|
$type->removeType('null');
|
||||||
}
|
}
|
||||||
|
|
||||||
if($type->isSingle()){
|
if(!$type->isSingle()){
|
||||||
//we removed null but the type is still not single
|
//we removed null but the type is still not single
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user