Skip to content

PHP 8.4 | ✨ New PHPCompatibility.Interfaces.NewPropertiesInInterfaces sniff (RFC) #1814

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jul 6, 2025

As of PHP 8.4, properties can be declared in interfaces.

This commit adds a new sniff to detect declaration of (hooked) properties in interfaces as supported in PHP 8.4.

Includes tests.
Includes documentation.

Refs:

Related to #1731

@jrfnl jrfnl added this to the 10.0.0 milestone Jul 6, 2025
@jrfnl jrfnl requested a review from wimg July 6, 2025 13:43
…s` sniff

As of PHP 8.4, properties can be declared in interfaces.

This commit adds a new sniff to detect declaration of (hooked) properties in interfaces as supported in PHP 8.4.

Includes tests.
Includes documentation.

Refs:
* https://wiki.php.net/rfc/property-hooks#interfaces
* php/php-src 13455
* php/php-src@780a828
@jrfnl jrfnl force-pushed the php-8.4/new-properties-in-interfaces-sniff branch from 4c4e919 to 4762a15 Compare July 6, 2025 13:50
@jrfnl jrfnl changed the title PHP 8.4 | ✨ New PHPCompatibility.Interfaces.NewPropertiesInInterfaces sniff PHP 8.4 | ✨ New PHPCompatibility.Interfaces.NewPropertiesInInterfaces sniff (RFC) Jul 11, 2025
@wimg wimg merged commit 0a6d8ff into develop Aug 6, 2025
46 checks passed
@wimg wimg deleted the php-8.4/new-properties-in-interfaces-sniff branch August 6, 2025 19:25
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.

2 participants