Skip to content
Permalink
Browse files

Keep going even when function doesn’t exist

  • Loading branch information...
muglug committed Jun 15, 2019
1 parent 2d5f332 commit 56e66af6a2233a65378c16b1d5329a5aa8facbec
@@ -263,7 +263,7 @@ public static function analyze(
$is_maybe_root_function
) === false
) {
return false;
return;
}
}
} else {
@@ -89,6 +89,15 @@ function foo() : void {
strlen("a", "b");
}'
],
'suppressUndefinedFunction' => [
'<?php
function verify_return_type(): DateTime {
/** @psalm-suppress UndefinedFunction */
unknown_function_call();
return new DateTime();
}',
],
];
}

0 comments on commit 56e66af

Please sign in to comment.
You can’t perform that action at this time.