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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This is needed because:
PHPUnit invokes ErrorHandler when the @-suppressed mkdir call triggers "File exists" error.
PHPUnit's ErrorHandler invokes its ExcludeList class which autoloads PHP-Parser's 5.0 Parser class to look for its directory location.
When PHPStan's loads its own PHP-Parser (4.18), there's an error like:
PHP Fatal error: Class PHPStan\Parser\PhpParserDecorator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PhpParser\Parser::getTokens) in phar:///Users/ondrej/Downloads/tadsan-phpstan-rules/vendor/phpstan/phpstan/phpstan.phar/src/Parser/PhpParserDecorator.php on line
9dac90d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because:
@
-suppressedmkdir
call triggers "File exists" error.Parser
class to look for its directory location.