Repository navigation
IBX-11939: Required ibexa/doctrine-migrations explicitly for dev-stability resolution - #253
Conversation
|
| $url = $this->map[$type]; | ||
| preg_match_all( | ||
| '(' . self::STANDARD_VARIABLE_REGEX . '|' . self::SLASHES_VARIABLE_REGEX . ')', | ||
| '(\{(?:\&\s*)?([A-Za-z-_]+)\})', |
There was a problem hiding this comment.
This is quite close to the old implementation / other constants, but differs. Care to elaborate why this is needed?
There was a problem hiding this comment.
I've seen the explanation. The change makes sense - it replaces a regex union with an equal setup with non-capturing group that is optional (instead of mandatory, as was in the union).
This in fact should produce similar output, albeit single - exactly what the following PHP code checking 1/2 keys was normalizing.
|
Let's narrow the changes to the actual purpose, PHPStan improvement is not super crucial here, especially if it is hard-to-read regular expression. |
…ility resolution ibexa/core#785 made ibexa/doctrine-migrations a dependency of ibexa/core, and it has no tagged release yet, so without minimum-stability dev Composer can't resolve ibexa/core 4.6.x-dev. Same fix as ibexa/rest#253.



Related PRs:
Description:
ibexa/core's recentIBX-11939Doctrine Migrations rollout (ibexa/core#785) addedibexa/doctrine-migrationsas a new transitive dependency, but that package has no taggedreleases — it only exists as a dev branch with a branch-alias. Any consumer of
ibexa/corethat doesn't itself set
"minimum-stability": "dev"(likeibexa/rest) now fails Composerdependency resolution entirely:
Agreed with @Steveb-p to explicitly in add
"ibexa/doctrine-migrations": "~4.6.x-dev"requirementAlso in this PR : A change to reg-exp in order to make PHPstan happy. Fix generated with Claude code, but test coverage looks good in that regards : https://github.com/ibexa/rest/blob/v4.6.32/tests/lib/UrlHandler/PatternTest.php#L83
For QA:
Ran
composer update --dry-runagainst thiscomposer.jsonin isolation — confirms theresolution error is gone (a separate, pre-existing
league/flysystemsecurity-advisoryblock can surface locally depending on Composer version, but is unrelated and doesn't
appear in this repo's actual CI).
Documentation:
None needed — one-line composer.json fix.
🤖 Generated with Claude Code