Skip to content

IBX-12654: Added ibexa/phpstan and fixed dynamic calls to static methods - #124

Merged
wiewiurdp merged 2 commits into
6.0from
IBX-12654-added-ibexa-phpstan-and-fixed-dynamic-calls-to-static-methods
Sep 23, 2026
Merged

wiewiurdp merged 2 commits into
6.0from
IBX-12654-added-ibexa-phpstan-and-fixed-dynamic-calls-to-static-methods

Conversation

@bnowak

@bnowak bnowak commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12654

Related PRs:

Description:

Adds ibexa/phpstan as a dev dependency and includes its extension in the PHPStan configuration.
No dynamic calls to static methods were found in this package (0 hits, verified with a temporary
activation of the staticMethod.dynamicCall strict rule, sanity-checked against a synthetic fixture
to confirm the rule actually fires), so there is no separate commit for that fix. The
staticMethod.dynamicCall strict rule itself is enabled in the linked ibexa/phpstan PR; this PR keeps
CI green once that is released.
Also fixes what the existing ibexa/phpstan rules report: 4 closures/arrow functions got return types
(Ibexa.requireClosureReturnType) in src/bundle/DependencyInjection/Configuration.php (2, both array)
and one each in src/lib/Gateway/DistributionStrategy/CloudDistributionStrategy.php and
StandaloneDistributionStrategy.php (both string).

For QA:

No functional change. CI (PHPStan, code style, unit tests) is the verification.

Documentation:

No client-facing impact.

@sonarqubecloud

Copy link
Copy Markdown

@wiewiurdp
wiewiurdp merged commit 4f5468a into 6.0 Sep 23, 2026
16 checks passed
@wiewiurdp
wiewiurdp deleted the IBX-12654-added-ibexa-phpstan-and-fixed-dynamic-calls-to-static-methods branch September 23, 2026 12:51
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.

3 participants