Skip to content

IBX-11939: Required ibexa/doctrine-migrations explicitly for dev-stability resolution - #253

Merged
alongosz merged 2 commits into
4.6from
IBX-11939-fix-doctrine-migrations-stability
Oct 6, 2026
Merged

alongosz merged 2 commits into
4.6from
IBX-11939-fix-doctrine-migrations-stability

Conversation

@vidarl

@vidarl vidarl commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11939

Related PRs:

Description:

ibexa/core's recent IBX-11939 Doctrine Migrations rollout (ibexa/core#785) added
ibexa/doctrine-migrations as a new transitive dependency, but that package has no tagged
releases — it only exists as a dev branch with a branch-alias. Any consumer of ibexa/core
that doesn't itself set "minimum-stability": "dev" (like ibexa/rest) now fails Composer
dependency resolution entirely:

- ibexa/core 4.6.x-dev requires ibexa/doctrine-migrations ~4.6.x-dev -> found
  ibexa/doctrine-migrations[4.6.x-dev] but it does not match your minimum-stability.

Agreed with @Steveb-p to explicitly in add "ibexa/doctrine-migrations": "~4.6.x-dev" requirement

Also 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-run against this composer.json in isolation — confirms the
resolution error is gone (a separate, pre-existing league/flysystem security-advisory
block 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

@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@vidarl
vidarl requested a review from a team October 6, 2026 10:10
$url = $this->map[$type];
preg_match_all(
'(' . self::STANDARD_VARIABLE_REGEX . '|' . self::SLASHES_VARIABLE_REGEX . ')',
'(\{(?:\&\s*)?([A-Za-z-_]+)\})',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite close to the old implementation / other constants, but differs. Care to elaborate why this is needed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tomaszszopinski tomaszszopinski left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA approved on upsun 4.6 exp instance.

@konradoboza

Copy link
Copy Markdown
Contributor

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.

Steveb-p added a commit to ibexa/test-core that referenced this pull request Oct 6, 2026
…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.
@alongosz
alongosz merged commit 8ed7718 into 4.6 Oct 6, 2026
24 checks passed
@alongosz
alongosz deleted the IBX-11939-fix-doctrine-migrations-stability branch October 6, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants