Precise array shape for preg_match_all() $matches (#3256), thanks @staabm!
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Fixed bug #513 : Generic.Functions.FunctionCallArgumentSpacing did not ignore the body of a match expressions passed as a function argument, which could lead to false positives.
Fixed bug #533 : Generic.WhiteSpace.DisallowTabIndent: tab indentation for heredoc/nowdoc closers will no longer be auto-fixed to prevent parse errors. The issue will still be reported.
The error code for heredoc/nowdoc indentation using tabs has been made more specific - TabsUsedHeredocCloser - to allow for selectively excluding the indentation check for heredoc/nowdoc closers.
Fixed bug #537 : Squiz.PHP.DisallowMultipleAssignments false positive for list assignments at the start of a new PHP block after an embedded PHP statement.
Fixed bug #554 : Generic.CodeAnalysis.UselessOverridingMethod edge case false negative when the call to the parent method would end on a PHP close tag.
Fixed bug #513 : Generic.Functions.FunctionCallArgumentSpacing did not ignore the body of a match expressions passed as a function argument, which could lead to false positives.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Fixed bug #533 : Generic.WhiteSpace.DisallowTabIndent: tab indentation for heredoc/nowdoc closers will no longer be auto-fixed to prevent parse errors. The issue will still be reported.
The error code for heredoc/nowdoc indentation using tabs has been made more specific - TabsUsedHeredocCloser - to allow for selectively excluding the indentation check for heredoc/nowdoc closers.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Fixed bug #534 : Generic.WhiteSpace.DisallowSpaceIndent did not report on space indentation for PHP 7.3 flexible heredoc/nowdoc closers.
Closers using space indentation will be reported with a dedicated error code: SpacesUsedHeredocCloser.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Fixed bug #537 : Squiz.PHP.DisallowMultipleAssignments false positive for list assignments at the start of a new PHP block after an embedded PHP statement.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Fixed bug #551 : Squiz.PHP.DisallowMultipleAssignments prevent false positive for function parameters during live coding.
Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
Fixed bug #554 : Generic.CodeAnalysis.UselessOverridingMethod edge case false negative when the call to the parent method would end on a PHP close tag.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Fixed bug #555 : Squiz.Classes.SelfMemberReference edge case false negative when the namespace declaration would end on a PHP close tag.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the dev-dependencies group with 2 updates: phpstan/phpstan and squizlabs/php_codesniffer.
Updates
phpstan/phpstan
from 1.11.6 to 1.11.9Release notes
Sourced from phpstan/phpstan's releases.
... (truncated)
Commits
e370bcd
PHPStan 1.11.92229deb
Updated PHPStan to commit 2229debcdc300987d0949a4ce9845c6e5561cd47c400c2c
Update baselinese19e6e5
Updated PHPStan to commit e19e6e5f8cfa706cc30e44a17276a6bc269f995c35a2f57
Updated PHPStan to commit 35a2f577d14229e5f50ef83bd417f84ef56ee04e582a0f8
Updated PHPStan to commit 582a0f8a744fa2ebda2d98783c55c78183e8bbedcf1096d
Updated PHPStan to commit cf1096d0ccd281274c36f6083eaa9833e945b0145c54586
Updated PHPStan to commit 5c54586a2fdd3c560253c2cf0e1328fb3a46680dbfef6da
Updated PHPStan to commit bfef6da0c7b4937e4f7568ce78368e8f80befe9ec0537db
Updated PHPStan to commit c0537db2aa4a80b588ea1704c084ec17ab51aa0dUpdates
squizlabs/php_codesniffer
from 3.10.1 to 3.10.2Release notes
Sourced from squizlabs/php_codesniffer's releases.
... (truncated)
Changelog
Sourced from squizlabs/php_codesniffer's changelog.
Commits
86e5f5d
Merge pull request #564 from PHPCSStandards/feature/changelog-3.10.2abe8f42
Changelog for the 3.10.2 release9b49761
Merge pull request #565 from PHPCSStandards/feature/contributing-add-section-...2d22432
CONTRIBUTING GUIDE: consistently use title case for headers34b9b40
CONTRIBUTING GUIDE: add section about finding issues to work on for code cont...ff203dc
Merge pull request #563 from PHPCSStandards/feature/docs-various-fixesd60022e
Documentation: various minor improvements85318b7
Merge pull request #556 from PHPCSStandards/feature/psr2-classdeclaration-add...8303a3f
PSR2/ClassDeclaration: add test with close brace followed by PHP close tag1d4c9d2
PSR2/ClassDeclaration: remove some redundant code [2]Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show