[TASK] Temporarily workaround a missing conflict in symfony/type-info #10
+3
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
symfony/type-info
is currently not compatible tophpstan/phpdoc-parser
2.x which results in a PHP error in extbase modules as shown in https://forge.typo3.org/issues/105582. A fix has been merged upstream, but has not been released yet and it seems there will be no immediate hotfix release by symfony – that means it will only be released by the end of the month [2]).Explanation of the issue:
phpdocumentor/reflection-docblock
5.6.0 [1] was released yesterday which allowscomposer install
andcomposer update
to raisephpstan/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 likephpdocumentor/reflection-docblock
(which is perfectly fine), this range flaw got revealed.This workaround will be removed once
symfony/type-info
has been updated to allow an upgrade tophpstan/phpdoc-parser
. For that reason this conflict is only added to this composer-only package to avoid a comlete TYPO3 release and is not added to extbase (extbase is not incompatible,symfony/type-info
is).[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
[4] symfony/symfony#58800 (comment)