You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error „should return static(Test) but returns Test“ #4860
@@ @@- 7: Method Test::copy() should return static(Test) but returns Test.+ 5: Method Test::copy() should return static(Test) but return statement is missing.+15: Method Test::copyTo() should return T but return statement is missing.
Full report
Line
Error
5
Method Test::copy() should return static(Test) but return statement is missing.
15
Method Test::copyTo() should return T but return statement is missing.
Activity
phpstan-bot commentedon Oct 4, 2021
@CsabaNa After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
Full report
Method Test::copy() should return static(Test) but return statement is missing.Method Test::copyTo() should return T but return statement is missing.Fix phpstan/phpstan#4860: Error „should return static(Test) but retur…
phpstan-bot commentedon Mar 13, 2026
Closed via merging phpstan/phpstan-src#5190
Updated PHPStan to commit dcdd6fa69204f349aa55440d3f1706df8730872f
Updated PHPStan to commit de44abd7b9195d2dcede99ce7664794c7880ba45
Fix phpstan/phpstan#4860: Error „should return static(Test) but retur…
github-actions commentedon Apr 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.