From 5995de0c9fa4c24ce8470d91657244f2bacbeef1 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Thu, 4 Jan 2018 19:31:12 -0500 Subject: [PATCH] Fix possible nullref --- src/Psalm/Checker/FunctionLikeChecker.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Psalm/Checker/FunctionLikeChecker.php b/src/Psalm/Checker/FunctionLikeChecker.php index 3a36c4f2d..f371170fd 100644 --- a/src/Psalm/Checker/FunctionLikeChecker.php +++ b/src/Psalm/Checker/FunctionLikeChecker.php @@ -793,7 +793,9 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo && !$guide_param->type->from_docblock && (!$implemeneter_param_type || ($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() + ) ) ) ) {