Skip to content

PHP 8.3 | Classes/NewReadonlyClasses: detect PHP 8.3+ anonymous readonly classes#1686

Merged
wimg merged 2 commits intodevelopfrom
feature/newreadonlyclasses-support-php-8.3-readonly-anonymous
Mar 31, 2024
Merged

PHP 8.3 | Classes/NewReadonlyClasses: detect PHP 8.3+ anonymous readonly classes#1686
wimg merged 2 commits intodevelopfrom
feature/newreadonlyclasses-support-php-8.3-readonly-anonymous

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 13, 2024

Composer: raise the minimum supported PHPCS version to 3.9.0

... to benefit from improved PHP 8.3 syntax support.

Includes updating references to the PHPCS version whenever relevant throughout the codebase.

PHP 8.3 | Classes/NewReadonlyClasses: detect PHP 8.3+ anonymous readonly classes

Anonymous classes may now be marked as readonly.

This commit updates the PHPCompatibility.Classes.ReadonlyClasses sniff to detect this.

Includes tests.

Refs:

Related to #1589

jrfnl added 2 commits March 13, 2024 22:57
... to benefit from improved PHP 8.3 syntax support.

Includes updating references to the PHPCS version whenever relevant throughout the codebase.
…nly classes

> Anonymous classes may now be marked as readonly.

This commit updates the `PHPCompatibility.Classes.ReadonlyClasses` sniff to detect this.

Includes tests.

Refs:
* https://www.php.net/manual/en/migration83.new-features.php#migration83.new-features.core.readonly-modifier-improvements
* php/php-src@e52684e
@jrfnl jrfnl added Type: enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Mar 13, 2024
@jrfnl jrfnl added this to the 10.0.0 milestone Mar 13, 2024
@jrfnl jrfnl requested a review from wimg March 13, 2024 22:01
@wimg wimg merged commit 465cf5b into develop Mar 31, 2024
@wimg wimg deleted the feature/newreadonlyclasses-support-php-8.3-readonly-anonymous branch March 31, 2024 23:53
@github-actions github-actions bot removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Mar 31, 2024
@jrfnl jrfnl added the PHP: 8.3 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