Skip to content

IBX-12654: Fixed dynamic calls to static methods - #97

Merged
wiewiurdp merged 1 commit into
6.0from
IBX-12654-fixed-dynamic-calls-to-static-methods
Sep 23, 2026
Merged

wiewiurdp merged 1 commit into
6.0from
IBX-12654-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:

Replaces dynamic calls to static methods ($this->assertX(), static test helpers, ...) with self::/ClassName:: calls: 10 calls in 6 files. The staticMethod.dynamicCall strict rule itself is enabled in the linked ibexa/phpstan PR; this PR keeps CI green once that is released.

All 10 hits were $this->createStub() calls in unit tests, which the php_unit_test_case_static_method_calls PHP CS Fixer rule does not cover (PHPUnit 11's static creator methods such as createStub are not part of that fixer's rule set), so they were converted by hand to self::createStub().

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 b1d22c3 into 6.0 Sep 23, 2026
12 checks passed
@wiewiurdp
wiewiurdp deleted the IBX-12654-fixed-dynamic-calls-to-static-methods branch September 23, 2026 12:52
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