Skip to content

Commit

Permalink
Fix NULL signature issue
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug authored Nov 30, 2016
1 parent 8d0e724 commit 1d603b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Checker/FunctionLikeChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public static function getTranslatedParam(
$is_nullable = $param->default !== null &&
$param->default instanceof \PhpParser\Node\Expr\ConstFetch &&
$param->default->name instanceof PhpParser\Node\Name &&
$param->default->name->parts === ['null'];
strtolower($param->default->name->parts[0]) === 'null';

if ($param->type) {
if (is_string($param->type)) {
Expand Down

0 comments on commit 1d603b1

Please sign in to comment.