Skip to content

fix readonly final class architecture side effect issue PHP8.2#645

Merged
cmgmyr merged 7 commits intonunomaduro:masterfrom
helyakin:chores/readonlyFinalClass
Sep 28, 2023
Merged

fix readonly final class architecture side effect issue PHP8.2#645
cmgmyr merged 7 commits intonunomaduro:masterfrom
helyakin:chores/readonlyFinalClass

Conversation

@helyakin
Copy link
Copy Markdown
Contributor

@helyakin helyakin commented Apr 24, 2023

Q A
Bug fix? yes
New feature? no
Fixed tickets #637

So this fix the [Architecture] Normal classes are forbidden. Classes must be final or abstract error message.

To fix the [Style] Side effects this PR to PHP_CodeSniffer SideEffectsSniff is currently being made and reviewed following this issue

I'm not quite sur about how to create tests for this new behavior as I haven't seen any test for the currently working behavior.
But I'd be happy to be wrong about this statement and to be showed which test I should update !

@helyakin
Copy link
Copy Markdown
Contributor Author

@cmgmyr, @JustSteveKing or @nunomaduro, would it be possible to have an update on this PR ?

Thank you so much

@cmgmyr
Copy link
Copy Markdown
Contributor

cmgmyr commented Sep 28, 2023

Thanks! I'm going to leave this in master for a few days to make sure there aren't any issues

@cmgmyr cmgmyr merged commit 382f294 into nunomaduro:master Sep 28, 2023
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