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
Improvements 🔧
Precise array shape for $matches from preg_match() improvements:
RegexArrayShapeMatcher - trailling groups are not optional when PREG_UNMATCHED_AS_NULL (#3219), #11311, thanks @staabm!
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.5 to 1.11.8Release notes
Sourced from phpstan/phpstan's releases.
... (truncated)
Commits
6adbd11
PHPStan 1.11.8c4c0269
Updated PHPStan to commit c4c02698414934def38e0e1a4a002a2c139d9242c9a6d2e
Updated PHPStan to commit c9a6d2e61edfad189a765df3c3a06674a10d4fb5101467d
Updated PHPStan to commit 101467d47d75cc793baaec89abf858342436e25a7c2d8b4
Updated PHPStan to commit 7c2d8b45c30bc1a445be34d736b286f876805e4f4a0ffab
Updated PHPStan to commit 4a0ffab348f87b874d80ac7d8289213d419fb860fec3501
Update baselines9db34df
Updated PHPStan to commit 9db34dfbdffb2442ca21d6765b0fbfeb0154745d2223dd9
Updated PHPStan to commit 2223dd9623522c223357c556189e7ec5280dba59a1e697b
Updated PHPStan to commit a1e697b6949371b02bba5a2164ccc2ded020dd5eUpdates
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