#105582PHPstan crash after update to 13.4.1
Description
Hello.
Just updated to typo3 13.4.1. Backend is running. Frontend crashes with ArgumentCountError in phpstan.
See error.log
Core: Exception handler (WEB: FE): ArgumentCountError, code #0, file /var/www/html/vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php, line 102: Too few arguments to function PHPStan\PhpDocParser\Lexer\Lexer::__construct(), 0 passed in /var/www/html/vendor/symfony/type-info/TypeResolver/StringTypeResolver.php on line 66
Reviews 3
Related issues 1
Files 1
History 8
-
Lars Lüthi commented <span data-processor="relativetime" data-value="2024-11-12T13:18:31+00:00" > 11/12/24, 13:18 </span>
A temporary fix is to downgrade phpstan/phpdoc-parser from 2.0.0 to 1.33.0
composer req phpstan/phpdoc-parser:^1.33See https://typo3.slack.com/archives/C03AM9R17/p1731413624808949 for more context.
-
S P commented <span data-processor="relativetime" data-value="2024-11-12T13:21:32+00:00" > 11/12/24, 13:21 </span>
Was about to write teh same.
Explciitly requiring
"phpstan/phpdoc-parser": "1.*"makes our v12 setups work again. -
Benjamin Franzke commented and changed status
NewClosed <span data-processor="relativetime" data-value="2024-11-12T13:59:45+00:00" > 11/12/24, 13:59 </span>We decided against a new TYPO3 release as this issue will be fixed by an upcoming symfony/type-info release (see https://github.com/symfony/symfony/pull/58800) and is unrelated to todays TYPO3 release.
It was
causedrevealed by https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.0 which was released 11:26 UTC today and allowed to upgrade phpstan/phpdoc-parser to 2.x, which revealed an invalid dependency constraint in symfony/type-info.We recommend the following hotfix to downgrade phpstan/phpdoc-parser to 1.x in composer-mode instances:
composer update phpstan/phpdoc-parser --with "phpstan/phpdoc-parser:^1"This will update composer.lock only and will allow to update to phpstan/phpdoc-parser 2.x once a fix to symfony/type-info has been released.
Edit: Updated above commands as suggested in https://github.com/symfony/symfony/pull/58800#issuecomment-2470818742 – previous recommendation was:
composer require phpstan/phpdoc-parser:^1 composer remove --no-update phpstan/phpdoc-parser
-
Benjamin Franzke changed description <span data-processor="relativetime" data-value="2024-11-12T14:00:24+00:00" > 11/12/24, 14:00 </span>
-
Benjamin Franzke changed description <span data-processor="relativetime" data-value="2024-11-12T14:00:45+00:00" > 11/12/24, 14:00 </span>
-
Andreas Kienast changed Duplicated by #105584 <span data-processor="relativetime" data-value="2024-11-12T15:22:35+00:00" > 11/12/24, 15:22 </span>
-
Benjamin Franzke changed Related to #105586 <span data-processor="relativetime" data-value="2024-11-13T04:59:53+00:00" > 11/13/24, 04:59 </span>
Confirmed. Also in v12.