diff --git a/src/Psalm/Checker/Statements/Expression/CallChecker.php b/src/Psalm/Checker/Statements/Expression/CallChecker.php index 42ad34f47ac..0c23e5b4abf 100644 --- a/src/Psalm/Checker/Statements/Expression/CallChecker.php +++ b/src/Psalm/Checker/Statements/Expression/CallChecker.php @@ -1137,7 +1137,7 @@ public static function checkFunctionArgumentType( return null; } - if ($input_type->isNullable() && !$param_type->isNullable()) { + if ($input_type->isNullable() && !$param_type->isNullable() && $cased_method_id !== 'echo') { if (IssueBuffer::accepts( new NullReference( 'Argument ' . ($argument_offset + 1) . ' of ' . $cased_method_id . ' cannot be null, possibly ' .