1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

Be more lenient with null

This commit is contained in:
Matthew Brown 2016-01-07 20:12:15 -05:00
parent fa37482cec
commit 018adbf2ae

View File

@ -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;
}