1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix possible nullref

This commit is contained in:
Matthew Brown 2018-01-04 19:31:12 -05:00
parent 6e7bab58c4
commit 5995de0c9f

View File

@ -793,7 +793,9 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo
&& !$guide_param->type->from_docblock && !$guide_param->type->from_docblock
&& (!$implemeneter_param_type && (!$implemeneter_param_type
|| ($implemeneter_param_type->getId() !== $guide_param->type->getId() || ($implemeneter_param_type->getId() !== $guide_param->type->getId()
&& $implemeneter_param_type->getId() !== $or_null_guide_type->getId() && (!$or_null_guide_type
|| $implemeneter_param_type->getId() !== $or_null_guide_type->getId()
)
) )
) )
) { ) {