:sparkles: PHP 8.0: New `PHPCompatibility.Classes.NewConstructorPropertyPromotion` sniff by jrfnl · Pull Request #1417 · PHPCompatibility/PHPCompatibility
Navigation Menu
{{ message }}
PHPCompatibility / PHPCompatibility Public
- Notifications You must be signed in to change notification settings
- Fork 204
Merged
Dec 5, 2022Merged
Conversation
Copy link Copy Markdown
Member
PHP 8.0 introduced constructor property promotion.
Refs:
- https://www.php.net/manual/en/language.oop5.decon.php#language.oop5.decon.constructor.promotion
- https://www.php.net/manual/en/migration80.new-features.php#migration80.new-features.core.property-promotion
- https://wiki.php.net/rfc/constructor_promotion
- Implement "Constructor Promotion" php/php-src#5291
- php/php-src@064b464
This commit adds a new sniff to detect this.
Includes unit tests.
Includes sniff documentation.
Related to #809
…ion` sniff PHP 8.0 introduced constructor property promotion. Refs: * https://www.php.net/manual/en/language.oop5.decon.php#language.oop5.decon.constructor.promotion * https://www.php.net/manual/en/migration80.new-features.php#migration80.new-features.core.property-promotion * https://wiki.php.net/rfc/constructor_promotion * php/php-src#5291 * php/php-src@064b464 This commit adds a new sniff to detect this. Includes unit tests.
jrfnl
added
Type: enhancement
PR: ready for review
labels
jrfnl
added this to the
10.0.0 milestone
jrfnl
requested a review
from wimg
jrfnl
mentioned this pull request
40 tasks
wimg approved these changes Dec 5, 2022
wimg
merged commit
62f7773
into
develop
wimg
deleted the
php-8.0/new-constructorpropertypromotion-sniff
branch
jrfnl
removed
the
PR: ready for review
label
jrfnl
mentioned this pull request
jrfnl
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment