phpdraft
phpdraft copied to clipboard
build(deps-dev): bump phpstan/phpstan from 1.11.4 to 1.11.8
Bumps phpstan/phpstan from 1.11.4 to 1.11.8.
Release notes
Sourced from phpstan/phpstan's releases.
1.11.8
Bleeding edge 🔪
- Report useless return values of function calls like
var_exportwithout$return=true(#3225), #11320, thanks@staabm!- Check mixed in binary operator (#3231), #7538, #10440, thanks
@schlndh!- Check vprintf/vsprintf arguments against placeholder count (#3126), thanks
@staabm!- Check mixed in unary operator (#3253), thanks
@schlndh!- Report "missing return" error closer to where the return is missing (https://github.com/phpstan/phpstan-src/commit/04f8636e6577cbcaefc944725eed74c0d7865ead)
- Stricter ++/-- operator check (#3255), thanks
@schlndh!- Check preg_quote delimiter sanity (#3252), #11338, 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:includes: - vendor/phpstan/phpstan/conf/bleedingEdge.neonOf 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
$matchesfrompreg_match()improvements:
- RegexArrayShapeMatcher - trailling groups are not optional when PREG_UNMATCHED_AS_NULL (#3219), #11311, thanks
@staabm!- Fix preg_match named capturing groups (#3228), #11323, thanks
@staabm!- RegexArrayShapeMatcher - Fix optional groups with PREG_UNMATCHED_AS_NULL (#3229), thanks
@staabm!- Allow overriding the PHP 7.2 support for PREG_UNMATCHED_AS_NULL (#3226), thanks
@Seldaek!- RegexArrayShapeMatcher - Fix PREG_UNMATCHED_AS_NULL with optional leading groups (#3234), #11331, thanks
@staabm!- RegexArrayShapeMatcher - Support preg_quote()'d patterns (#3233), #11332, thanks
@staabm!- RegexArrayShapeMatcher - Fix PREG_UNMATCHED_AS_NULL with top level alternation (#3238), thanks
@staabm!- RegexArrayShapeMatcher - More precise non-empty-string and numeric-string (#3249), thanks
@staabm!- Fix regex parsing by completing the grammar (#3244), thanks
@Seldaek!- RegexArrayShapeMatcher -
(\d*)can be empty-string (#3257), thanks@staabm!- Add
diagnosecommand to run DiagnoseExtensions (https://github.com/phpstan/phpstan-src/commit/22c84d2e64dd30780c995d8a720a487bb484dc02)- Diagnose extension: Info about extensions installed via extension-installer (https://github.com/phpstan/phpstan-src/commit/db71f04aa14f5be6421e92d7b76031605de5ad80)
- Diagnose extension - where is PHPStan running from (https://github.com/phpstan/phpstan-src/commit/76464eed45dee10154cb25b9f05586c346046adc)
- Parallel scheduler becomes DiagnoseExtension (https://github.com/phpstan/phpstan-src/commit/c7c9689cd86a9811eeaa2bb365ab5bc302109802)
- ResultCacheManager: output restore time in debug mode (#3224), thanks
@janedbal!- Add hint as to what might be wrong when invalid identifiers are used (#3230), thanks
@Seldaek!- Optimize array_map with many arrays (https://github.com/phpstan/phpstan-src/commit/09fbc92c415a2b9789463b3ca8fa7c73cc3475bd), #11297
- Improved
sprintf()inference (#3232), thanks@staabm!- Print elapsed analysis time with
-v(#3239, #3242), thanks@janedbal!- More precise
sprintf()format arg-based return type (#3192), #11248, #10493, thanks@staabm!Bugfixes 🐛
- Fix return type of round/ceil/floor in non strict type environment (#3223), #11319, thanks
@BackEndTea!
... (truncated)
Commits
6adbd11PHPStan 1.11.8c4c0269Updated PHPStan to commit c4c02698414934def38e0e1a4a002a2c139d9242c9a6d2eUpdated PHPStan to commit c9a6d2e61edfad189a765df3c3a06674a10d4fb5101467dUpdated PHPStan to commit 101467d47d75cc793baaec89abf858342436e25a7c2d8b4Updated PHPStan to commit 7c2d8b45c30bc1a445be34d736b286f876805e4f4a0ffabUpdated PHPStan to commit 4a0ffab348f87b874d80ac7d8289213d419fb860fec3501Update baselines9db34dfUpdated PHPStan to commit 9db34dfbdffb2442ca21d6765b0fbfeb0154745d2223dd9Updated PHPStan to commit 2223dd9623522c223357c556189e7ec5280dba59a1e697bUpdated PHPStan to commit a1e697b6949371b02bba5a2164ccc2ded020dd5e- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)