Skip to content

feat(rules): enforce catch exception order#383

Merged
greg0ire merged 1 commit into
doctrine:15.0.xfrom
simPod:slevomat-catch-exceptions-order
Jun 30, 2026
Merged

feat(rules): enforce catch exception order#383
greg0ire merged 1 commit into
doctrine:15.0.xfrom
simPod:slevomat-catch-exceptions-order

Conversation

@simPod

@simPod simPod commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Adds the Slevomat catch exception order rule and updates the fixtures/report expectations.

This is separate from #378: that PR was closed because we wanted to keep control over @throws annotation order. Catch exception order is a different case because it affects caught exception type ordering in code, not docblock annotation ordering.

@simPod
simPod force-pushed the slevomat-catch-exceptions-order branch 2 times, most recently from fee2969 to 14c6472 Compare June 29, 2026 15:12
@simPod
simPod marked this pull request as ready for review June 29, 2026 15:13
@simPod
simPod requested a review from a team as a code owner June 29, 2026 15:13
ostrolucky
ostrolucky previously approved these changes Jun 29, 2026
Comment thread lib/Doctrine/ruleset.xml Outdated
@greg0ire

Copy link
Copy Markdown
Member

Please squash the commits

@simPod
simPod force-pushed the slevomat-catch-exceptions-order branch from cdc0d5b to 3770eb2 Compare June 30, 2026 06:06
@simPod

simPod commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

Done: the rule is ordered alphabetically and the branch is squashed to a single commit.

@greg0ire
greg0ire merged commit d9c3346 into doctrine:15.0.x Jun 30, 2026
13 checks passed
@greg0ire greg0ire added this to the 15.0.0 milestone Jun 30, 2026
@simPod
simPod deleted the slevomat-catch-exceptions-order branch July 1, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants