Skip to content

Commit

Permalink
Update PhpStanType.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fezfez authored Jul 9, 2020
1 parent 321fe9e commit 6377548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/PhpStanFunctions/PhpStanType.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getSignatureType(?int $errorType = null): string
} elseif (\strpos($type, '[]') !== false) {
$type = 'iterable'; //generics cannot be typehinted and have to be turned into iterable
} elseif (\strpos($type, 'resource') !== false) {
$type = '\resource'; // Compatibilty with php8
$type = ''; // resource cant be typehinted
}
}

Expand Down

0 comments on commit 6377548

Please sign in to comment.