New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.12.2] adding {@inheritdoc} breaks phpstan #2879
Comments
Seems like a Slim issue phpstan/phpstan#2561 (comment) |
PHPStan does not currently support overriding of |
I understand, feel free to close the issue, workaround is fine for me |
We could also change the phpdoc of interface EnvironmentInterface
{
/**
* Create mock environment
*
* @param array $settings Array of custom environment keys and values
*
* @return static
*/
public static function mock(array $settings = []);
} |
Following change in 3.12.2 breaks the phpstan
https://github.com/slimphp/Slim/compare/3.12.1..3.12.2#diff-0662ca8cf8d9ad2868ffab7a85a61847R21
Not sure if it's a slim regression or phpstan issue, See the relevant report in phpstan repo for more details: phpstan/phpstan#2561
To workaround it in my code I had to change
to
The text was updated successfully, but these errors were encountered: