Skip to content

Commit b619be1

Browse files
committed
Update dynamic-static-call.php
1 parent 09c0a75 commit b619be1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PHPStan/Rules/Methods/data/dynamic-static-call.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final static public function finalFoo():int
3030
class Baz {
3131
function doBaz(Foo $foo, FinalFoo $finalFoo, Bar $bar):void {
3232
$foo::doFoo(); // no error, subclass could override static method with impure impl
33-
$finalFoo::doFoo(); // could error, because final class
34-
$bar::finalFoo(); // could error, because final method
33+
$finalFoo::doFoo(); // could be "Call to static method .. on a separate line has no effect", because final class
34+
$bar::finalFoo(); // could be "Call to static method .. on a separate line has no effect", because final method
3535
}
3636
}

0 commit comments

Comments
 (0)