Skip to content

Fix switcher extension#20

Merged
Hug0-Drelon merged 2 commits intomasterfrom
fix-switcher-extension
Feb 2, 2026
Merged

Fix switcher extension#20
Hug0-Drelon merged 2 commits intomasterfrom
fix-switcher-extension

Conversation

@Hug0-Drelon
Copy link
Member

What

Fixes https://github.com/polylang/polylang-phpstan/actions/runs/21521636989/job/62031985650#step:5:20
Apparently some PHPUnit tests generate PHPStan\Type\MixedType for raw argument.
Let's use the proper API with toBoolen()->isTrue() for raw argument;

Update test expectation, the fix making the returned type even stricter!

@Hug0-Drelon Hug0-Drelon self-assigned this Jan 30, 2026
@Hug0-Drelon Hug0-Drelon added the bug Something isn't working label Jan 30, 2026
@Hug0-Drelon Hug0-Drelon merged commit b9f9920 into master Feb 2, 2026
2 checks passed
@Hug0-Drelon Hug0-Drelon deleted the fix-switcher-extension branch February 2, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants