Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ New PHPCompatibility.Classes.ForbiddenExtendingFinalClass sniff #1486

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 27, 2023

From the PHP 8.0 changelogs:

Implemented FR #78638 (__PHP_Incomplete_Class should be final)

Refs:

To address this change, I'm introducing a new array based sniff which allows for more classes to be added if/when more native PHP classes would become final.

Includes unit tests.

@jrfnl jrfnl added this to the 10.0.0 milestone Mar 27, 2023
@jrfnl jrfnl requested a review from wimg March 27, 2023 09:58
@jrfnl jrfnl force-pushed the feature/new-forbiddenextendingfinalclass-sniff branch from 640e3b2 to ce0ecf5 Compare March 28, 2023 11:12
@jrfnl jrfnl force-pushed the feature/new-forbiddenextendingfinalclass-sniff branch from ce0ecf5 to 48a64ac Compare April 5, 2023 07:25
@jrfnl jrfnl force-pushed the feature/new-forbiddenextendingfinalclass-sniff branch from 48a64ac to 52b6452 Compare April 20, 2023 14:48
> Implemented FR #78638 (__PHP_Incomplete_Class should be final)

Refs:
* https://github.com/php/php-src/blob/0e45ed772df304c58f151d75d75f4ab5d9192c5b/NEWS#L1526
* php/php-src@b418f33

To address this change, I'm introducing a new array based sniff which allows for more classes to be added if/when more native PHP classes would become `final`.

Includes unit tests.
Includes XML docs.
@jrfnl jrfnl force-pushed the feature/new-forbiddenextendingfinalclass-sniff branch from 52b6452 to e25f3d5 Compare April 20, 2023 14:49
@jrfnl jrfnl merged commit 416e61e into develop Apr 20, 2023
41 checks passed
@jrfnl jrfnl deleted the feature/new-forbiddenextendingfinalclass-sniff branch April 20, 2023 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants