mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Be more lenient with null
This commit is contained in:
parent
fa37482cec
commit
018adbf2ae
@ -1064,7 +1064,7 @@ class FunctionChecker
|
||||
|
||||
protected static function _isCorrectType($return_type, $method_id, $arg_offset)
|
||||
{
|
||||
if ($return_type === 'mixed') {
|
||||
if ($return_type === 'mixed' || $return_type === 'null') {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user