szepeviktor / phpstan-wordpress

WordPress extensions for PHPStan ⛏️
https://packagist.org/packages/szepeviktor/phpstan-wordpress
MIT License
262 stars 26 forks source link

Fix dynamic call to static method #208

Closed IanDelMar closed 10 months ago

IanDelMar commented 10 months ago

The \PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes() method is called statically. See the implementation in the PHPStan source code here: PHPStan TypeInferenceTestCase.php line 118-120.

We have updated the minimum required version from 1.10.0 to 1.10.31. In version 1.10.0, it was still called dynamically, as can be seen here: PHPStan TypeInferenceTestCase.php line 81-83."

szepeviktor commented 10 months ago

All right!