Skip to content

Commit ab72ba8

Browse files
authored
EnforceNativeReturnTypehintRule: add method note (#68)
1 parent 1853b79 commit ab72ba8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Rule/EnforceNativeReturnTypehintRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ private function getTypeOfReturnStatements(ReturnStatementsNode $node): Type
201201
return TypeCombinator::union(...$types);
202202
}
203203

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

0 commit comments

Comments
 (0)