Skip to content

fix(phpstan): restructure schedule-description branching for PHPStan 2.2#7

Merged
Headgent merged 1 commit into
developfrom
fix/260611_phpstan-22-compat
Jun 11, 2026
Merged

fix(phpstan): restructure schedule-description branching for PHPStan 2.2#7
Headgent merged 1 commit into
developfrom
fix/260611_phpstan-22-compat

Conversation

@Headgent

Copy link
Copy Markdown
Contributor

CI pulls latest PHPStan (no composer.lock tracked); PHPStan 2.2 flags the mutually exclusive describe-if-chain as always-false/always-true via PHPDoc-certainty narrowing. Restructured into a nested decision tree (each cron field tested once per path). Behavior unchanged — existing Daily/Weekly/Monthly tests cover all branches. Local QA green with PHPStan 2.2.2.

PHPStan 2.2 (pulled fresh by CI, no lock tracked) flags the previous
mutually exclusive if-chain as always-false/always-true via PHPDoc-certainty
narrowing. Replaced with a nested decision tree that tests each cron field
once per path - behavior unchanged, covered by existing Daily/Weekly/Monthly
tests.
@Headgent Headgent merged commit c606b43 into develop Jun 11, 2026
3 checks passed
@Headgent Headgent deleted the fix/260611_phpstan-22-compat branch June 11, 2026 19:47
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.

1 participant