(Throwable~PDOException)::getCode() should be an int #8802
Labels
easy problems
Issues that can be fixed without background knowledge of Psalm
enhancement
Help wanted
Follow up of
#7390
#7525
#7673
@orklah
There is an error in psalm with
https://psalm.dev/r/23800504eb
but it works fine for phpstan
https://phpstan.org/r/014a6319-6af4-4fac-971d-4f4dbb76f57d
Is possible to say to psalm that
(Throwable~ PDOException)::getCode()
always return an int ?Current PHPStan implementation: https://github.com/phpstan/phpstan-src/blob/1.9.x/src/Type/Php/ThrowableReturnTypeExtension.php
Current Psalm implementation:
psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php
Line 102 in 65c31ce
The text was updated successfully, but these errors were encountered: