Skip to content

Commit

Permalink
EnforceNativeReturnTypehintRule: add method note (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Jan 3, 2023
1 parent 1853b79 commit ab72ba8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Rule/EnforceNativeReturnTypehintRule.php
Expand Up @@ -201,6 +201,9 @@ private function getTypeOfReturnStatements(ReturnStatementsNode $node): Type
return TypeCombinator::union(...$types);
}

/**
* To be removed once we bump phpstan version to 1.9.5+ (https://github.com/phpstan/phpstan-src/pull/2141)
*/
private function hasNativeReturnTypehint(ReturnStatementsNode $node): bool
{
if ($node instanceof MethodReturnStatementsNode) { // @phpstan-ignore-line ignore bc warning
Expand Down

0 comments on commit ab72ba8

Please sign in to comment.