Skip to content

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
@jrfnl jrfnl deleted the feature/new-forbiddenextendingfinalclass-sniff branch April 20, 2023 22:22
@jrfnl jrfnl changed the title ✨ New PHPCompatibility.Classes.ForbiddenExtendingFinalClass sniff ✨ New PHPCompatibility.Classes.ForbiddenExtendingFinalPHPClass sniff Oct 12, 2025
@jrfnl jrfnl added the PHP: All label Nov 4, 2025
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.

3 participants