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

Various sniffs: set redundant default values #264

Merged
merged 3 commits into from
Aug 26, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 26, 2023

Modernize/Dirname: set redundant default values

Universal/DisallowInlineTabs: set redundant default values

Universal/PrecisionAlignment: set redundant default values

These variables are only accessed within conditions and those conditions already sufficiently ensure that the variables will be set for the conditions path.

Even so, PHPStan cannot handle this, so we may as well declare sensible defaults for each of those variables to make things more explicit.

These variables are only accessed within conditions and those conditions already sufficiently ensure that the variables will be set for the conditions path.

Even so, PHPStan cannot handle this, so we may as well declare sensible defaults for each of those variables to make things more explicit.
This variable is only accessed within conditions and those conditions already sufficiently ensure that the variable will be set for the conditions path.

Even so, PHPStan cannot handle this, so we may as well declare a sensible default for this variable to make things more explicit.
These variables are only accessed within conditions and those conditions already sufficiently ensure that the variables will be set for the conditions path.

Even so, PHPStan cannot handle this, so we may as well declare sensible defaults for each of those variables to make things more explicit.
@jrfnl jrfnl added this to the 1.1.x Next milestone Aug 26, 2023
@jrfnl jrfnl merged commit 8ffd4d8 into develop Aug 26, 2023
37 checks passed
@jrfnl jrfnl deleted the feature/various-sniffs-set-redundant-defaults branch August 26, 2023 03:14
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.

None yet

1 participant