Skip to content

Fix phpstan failure in ApiExtension config assertion#31

Merged
f3l1x merged 1 commit intocontributte:masterfrom
ohmyfelix:fix/phpstan-assert-input-type
Feb 12, 2026
Merged

Fix phpstan failure in ApiExtension config assertion#31
f3l1x merged 1 commit intocontributte:masterfrom
ohmyfelix:fix/phpstan-assert-input-type

Conversation

@ohmyfelix
Copy link
Contributor

Summary

  • Fixes the default-branch phpstan failure caused by passing an unconstrained mixed value into str_starts_with, class_exists, and interface_exists inside the config schema assertion.
  • Adds an explicit is_string() guard in ApiExtension::getConfigSchema() so the assertion remains safe and statically provable.
  • Verified locally with make qa, make tests, and make coverage.

@codecov
Copy link

codecov bot commented Feb 12, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@ohmyfelix ohmyfelix force-pushed the fix/phpstan-assert-input-type branch from 741d601 to ddf6bc7 Compare February 12, 2026 17:21
@f3l1x f3l1x merged commit 46c6f0a into contributte:master Feb 12, 2026
9 checks passed
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.

2 participants