Skip to content
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

Squiz/MemberVarSpacing: allow for PHP 8.1+ readonly properties #828

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 17, 2025

Description

Readonly properties can be declared without visibility: https://3v4l.org/OS9hE The sniff did not take this into account.

Fixed now.

Includes tests.

Suggested changelog entry

Squiz.WhiteSpace.MemberVarSpacing: allow for readonly properties

Related issues/external references

Loosely related to #152

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Readonly properties can be declared without visibility: https://3v4l.org/OS9hE
The sniff did not take this into account.

Fixed now.

Includes tests.
@jrfnl
Copy link
Member Author

jrfnl commented Feb 17, 2025

Note: this PR is part of a series of PRs to fix various issues in this sniff...

@jrfnl jrfnl merged commit 894bf72 into master Feb 18, 2025
59 checks passed
@jrfnl jrfnl deleted the feature/squiz-membervarspacing-readonly branch February 18, 2025 15:30
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