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

Fix non-existing default property #652

Merged
merged 3 commits into from Sep 28, 2023
Merged

Fix non-existing default property #652

merged 3 commits into from Sep 28, 2023

Conversation

hdcore
Copy link
Contributor

@hdcore hdcore commented Jul 31, 2023

Q A
Bug fix? yes
New feature? no
Fixed tickets

Removing the default for a non-existing property newlinesCountBetweenOpenTagAndDeclare in DeclareStrictTypesSniff (https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php) that gives an deprecation notice in PHP 8.2.

@cmgmyr
Copy link
Collaborator

cmgmyr commented Sep 28, 2023

Thanks! Looks like the method was renamed in this commit

@cmgmyr cmgmyr merged commit 692d9e4 into nunomaduro:master Sep 28, 2023
43 checks passed
@cmgmyr cmgmyr mentioned this pull request Sep 28, 2023
@hdcore
Copy link
Contributor Author

hdcore commented Oct 29, 2023

It looks you've added the old variable name "newlinesCountBeforeDeclare" instead of the current one "linesCountBeforeDeclare".
https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants