Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Jul 5, 2025

⚠️ This PR needs for PR #1806 to be merged first. It relies on functionality supported since PHPCS 3.13.0. ⚠️ (PR #1806 has been merged)


PHP 8.4 | NewKeywords: detect use of asymmetric visibility

. Implemented asymmetric property visibility.
RFC: https://wiki.php.net/rfc/asymmetric-visibility-v2

This commit adds detection of the use of asymmetric visibility via the dedicated tokens to the NewKeywords sniff.

Includes tests.

Includes adding some additional RFC links previously missed.

Refs:

Related to #1731

PHP 8.4 | NewConstants: detect use of asymmetric visibility token constants

. Implemented asymmetric property visibility.
RFC: https://wiki.php.net/rfc/asymmetric-visibility-v2

This commit adds detection of the use of the asymmetric visibility tokens to the NewConstants sniff.

Includes tests.

Refs:

Related to #1731

@jrfnl jrfnl added this to the 10.0.0 milestone Jul 5, 2025
@jrfnl jrfnl force-pushed the php-8.4/detect-asymmetric-visibility branch from 0ee6356 to f569d2c Compare July 6, 2025 00:33
@jrfnl jrfnl added the PR: quick merge PR only contains relatively simple changes label Jul 6, 2025
@jrfnl jrfnl requested a review from wimg July 6, 2025 00:37
Base automatically changed from feature/composer-update-for-phpcsutils-1.1.0 to develop July 6, 2025 13:28
jrfnl added 2 commits July 6, 2025 15:39
>   . Implemented asymmetric property visibility.
>    RFC: https://wiki.php.net/rfc/asymmetric-visibility-v2

This commit adds detection of the use of asymmetric visibility via the dedicated tokens to the `NewKeywords` sniff.

Includes tests.

Includes adding some additional RFC links previously missed.

Refs:
* https://wiki.php.net/rfc/asymmetric-visibility-v2
* https://github.com/php/php-src/blob/2aeefb13bec49dcf59e644d85f5e7a04787bec55/UPGRADING#L296-L297
* php/php-src 15063
* php/php-src@8df557a

Related to 1731
…stants

>   . Implemented asymmetric property visibility.
>    RFC: https://wiki.php.net/rfc/asymmetric-visibility-v2

This commit adds detection of the use of the asymmetric visibility tokens to the `NewConstants` sniff.

Includes tests.

Refs:
* https://wiki.php.net/rfc/asymmetric-visibility-v2
* https://github.com/php/php-src/blob/2aeefb13bec49dcf59e644d85f5e7a04787bec55/UPGRADING#L296-L297
* php/php-src 15063
* php/php-src@8df557a

Related to 1731
@jrfnl jrfnl force-pushed the php-8.4/detect-asymmetric-visibility branch from f569d2c to 58f8c26 Compare July 6, 2025 13:39
@jrfnl
Copy link
Member Author

jrfnl commented Jul 6, 2025

Rebased without changes after the merge of #1806 and marked as "ready for review".

@jrfnl jrfnl marked this pull request as ready for review July 6, 2025 13:39
@wimg wimg merged commit e1e3fed into develop Jul 6, 2025
46 checks passed
@wimg wimg deleted the php-8.4/detect-asymmetric-visibility branch July 6, 2025 15:55
@github-actions github-actions bot removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Jul 6, 2025
@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.

3 participants