Skip to content

chore: Bump to StructArmed ^0.15 and enable MustBeFinalRule on tests - #19550

Open
samsonasik wants to merge 3 commits into
cakephp:5.xfrom
samsonasik:finalize-tests
Open

chore: Bump to StructArmed ^0.15 and enable MustBeFinalRule on tests#19550
samsonasik wants to merge 3 commits into
cakephp:5.xfrom
samsonasik:finalize-tests

Conversation

@samsonasik

@samsonasik samsonasik commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

StructArmed 0.15.0 introduce ExtendedClassAwareRuleInterface that makes its MustBeFinalRule safely be used to skip if there is class that extend target class.

This PR bump StructArmed to ^0.15 and apply the MustBeFinalRule with single command to fix.

vendor/bin/structarmed analyze src tests --fix

to finalize tests classes.

@samsonasik samsonasik changed the title Bump to StructArmed ^0.15 and enable MustBeFinalRule on tests chore: Bump to StructArmed ^0.15 and enable MustBeFinalRule on tests Jul 20, 2026
Comment thread .github/workflows/ci.yml Outdated
@dereuromark dereuromark added this to the 5.4.0 milestone Jul 20, 2026
samsonasik and others added 2 commits July 20, 2026 22:20
Co-authored-by: Mark Scherer <dereuromark@users.noreply.github.com>
@samsonasik
samsonasik requested a review from dereuromark July 20, 2026 15:22
@samsonasik

Copy link
Copy Markdown
Contributor Author

@dereuromark ready 👍

@dereuromark dereuromark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though probably a bit overkill I guess this seems fine to apply.

@ADmad

ADmad commented Jul 20, 2026

Copy link
Copy Markdown
Member

This is unnecessary code churn and a pointless rule given that we actually have test cases extending other test cases.

@dereuromark

Copy link
Copy Markdown
Member

that we actually have test cases extending other test cases.

I didnt see any fails here.

@samsonasik

samsonasik commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

The rule is properly verify if the class has child, that class is skipped.

@markstory markstory modified the milestones: 5.4.0, 5.4.1 Jul 26, 2026
@dereuromark
dereuromark requested a review from markstory July 28, 2026 11:24
@markstory markstory modified the milestones: 5.4.1, 5.4.2 Jul 31, 2026
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