File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1818use PhpParser \Node \Param ;
1919use PhpParser \NodeVisitor ;
2020use PHPStan \Analyser \Scope ;
21- use PHPStan \Reflection \Annotations \ AnnotationMethodReflection ;
21+ use PHPStan \Reflection \MethodReflection ;
2222use Rector \NodeNameResolver \NodeNameResolver ;
2323use Rector \NodeTypeResolver \Node \AttributeKey ;
2424use Rector \PhpDocParser \NodeTraverser \SimpleCallableNodeTraverser ;
@@ -95,8 +95,8 @@ public function shouldSkip(
9595 return true ;
9696 }
9797
98- // exists, but by @method annotation
99- if ($ reflection instanceof AnnotationMethodReflection && ! $ reflection ->getDeclaringClass ()->hasNativeMethod (
98+ // phpstan reports first class callables that are not native methods
99+ if ($ reflection instanceof MethodReflection && ! $ reflection ->getDeclaringClass ()->hasNativeMethod (
100100 $ reflection ->getName ()
101101 )) {
102102 return true ;
You can’t perform that action at this time.
0 commit comments