Skip to content

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

Merged
wimg merged 1 commit intodevelopfrom
php-8.4/new-properties-in-interfaces-sniff
Aug 6, 2025
Merged

PHP 8.4 | ✨ New PHPCompatibility.Interfaces.NewPropertiesInInterfaces sniff (RFC)#1814
wimg merged 1 commit intodevelopfrom
php-8.4/new-properties-in-interfaces-sniff

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

…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
@jrfnl jrfnl added the PHP: 8.4 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.

2 participants