Skip to content

Squiz/MemberVarScope: update for properties with asymmetric visibility#1122

Merged
jrfnl merged 1 commit into
masterfrom
php-8.4/feature/squiz-membervarscope-support-asym-visibility
Jun 9, 2025
Merged

Squiz/MemberVarScope: update for properties with asymmetric visibility#1122
jrfnl merged 1 commit into
masterfrom
php-8.4/feature/squiz-membervarscope-support-asym-visibility

Conversation

@jrfnl

@jrfnl jrfnl commented Jun 6, 2025

Copy link
Copy Markdown
Member

Description

Do still flag when the "get" (read) scope is not specified, but do so with a different error code to allow for rulesets to ignore that error.

Includes tests.

Suggested changelog entry

  • Added support for PHP 8.4 asymmetric visibility modifiers to the following sniffs:
    • Squiz.Scope.MemberVarScope

Related issues/external references

Follow up on #851
Follow up on #1116

Related to #734

@jrfnl jrfnl added this to the 3.13.1 milestone Jun 6, 2025
@jrfnl jrfnl mentioned this pull request Jun 6, 2025
47 tasks
Base automatically changed from php-8.4/feature/file-methods-support-asym-visibility to master June 9, 2025 01:45
@jrfnl
jrfnl marked this pull request as ready for review June 9, 2025 01:55
Do still flag when the "get" (read) scope is not specified, but do so with a different error code to allow for rulesets to ignore that error.

Includes tests.
@jrfnl
jrfnl force-pushed the php-8.4/feature/squiz-membervarscope-support-asym-visibility branch from 4c2f7ba to 622ac74 Compare June 9, 2025 02:37
@jrfnl

jrfnl commented Jun 9, 2025

Copy link
Copy Markdown
Member Author

Rebased without changes to get a proper build.

@jrfnl
jrfnl merged commit 8fab89f into master Jun 9, 2025
62 checks passed
@jrfnl
jrfnl deleted the php-8.4/feature/squiz-membervarscope-support-asym-visibility branch June 9, 2025 03:20
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.

1 participant