IBX-12654: Added ibexa/phpstan and fixed dynamic calls to static methods - #53
Merged
konradoboza merged 4 commits intoSep 23, 2026
Conversation
bnowak
marked this pull request as ready for review
September 23, 2026 10:32
konradoboza
approved these changes
Sep 23, 2026
Steveb-p
approved these changes
Sep 23, 2026
|
konradoboza
approved these changes
Sep 23, 2026
konradoboza
deleted the
IBX-12654-added-ibexa-phpstan-and-fixed-dynamic-calls-to-static-methods
branch
September 23, 2026 12:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Related PRs:
Description:
Adds
ibexa/phpstanas a dev dependency and includes its extension in the PHPStan configuration.Replaces dynamic calls to static methods (
$this->assertX(), static test helpers, ...) withself::/ClassName::calls: 2 calls in 2 files. ThestaticMethod.dynamicCallstrict rule itself is enabled in the linked ibexa/phpstan PR; this PR keeps CI green once that is released.No issues reported by
ibexa/phpstan's existing rules, so no third commit was needed.Also fixes a CI-only issue:
ibexa/phpstanrequiresibexa/doctrine-schemaback (this package), so a detached PR-merge checkout could not derive a branch-based Composer root version, breaking resolution. Fixed by addingibexa/gh-workflows/actions/setup-composer-root-version@mainbefore everycomposer-install@mainstep inbackend-ci.yaml(same fix already applied toibexa/core, which has the identical self-reference).Judgment call:
ibexa/doctrine-schemadoes not requireibexa/coredirectly, so requiringibexa/phpstan(which requiresibexa/core) failed Composer's minimum-stability check for the transitively-requiredibexa/coredev version. Rather than loosening this package's stability settings, added"ibexa/core": "~6.0.x-dev"directly torequire-dev, so Composer has an explicit dev-stability constraint to resolve against without needingminimum-stability/prefer-stable.For QA:
No functional change. CI (PHPStan, code style, unit tests) is the verification.
Documentation:
No client-facing impact.