Skip to content

[RELEASE] Ensure compatibility of symfony/type-info with clear phpstan/phpdoc-parser constraint

Latest
Compare
Choose a tag to compare
@bmack bmack released this 13 Nov 12:40
e7ad171

This release adds a proper composer dependency to ensure all TYPO3 projects continue to work.

See https://forge.typo3.org/issues/105582

phpdocumentor/reflection-docblock 5.6.0 [1] was released yesterday which allows composer install and composer update to raise phpstan/phpdoc-parser to 2.x.
Since symfony/type-info has an optional dependency to phpstan/phpdoc-parser, a conflict is used to express the supported version. This upstream conflict has a weak range [3] as it only forbids incompatible old versions, but not new upcoming major(!) versions.
The statement "conflict": "<1.0" [3] forbids to install any version before 1.0, but missed to opt out from future major releases (which are allowed to be breaking per semver).
Now that phpstan/phpdoc-parser 2.x has been released and is allowed to be installed by other dependencies like
phpdocumentor/reflection-docblock (which is perfectly fine), this range flaw got revealed.

[1] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.0
[2] symfony/symfony#58800 (comment)
[3] https://github.com/symfony/type-info/blob/v7.1.6/composer.json#L36-L37

Thanks to @bnf for providing this workaround