hackariens / phpfpm

Templates pour la crΓ©ation d'un nouveau projet phpfpm
0 stars 0 forks source link

chore(deps): update dependency phpstan/phpstan to v1.12.4 #118

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
phpstan/phpstan 1.9.14 -> 1.12.4 age adoption passing confidence

Release Notes

phpstan/phpstan (phpstan/phpstan) ### [`v1.12.4`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.12.4) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.12.3...1.12.4) # Improvements πŸ”§ - Special internal error message for Larastan & Laravel (https://github.com/phpstan/phpstan-src/commit/475a18ce8e0e14e340d7a0939906fffa6dd28e8d), [#​11641](https://redirect.github.com/phpstan/phpstan/issues/11641) - Do not truncate offset key in error tip message ([#​3437](https://redirect.github.com/phpstan/phpstan-src/pull/3437)), thanks [@​ruudk](https://redirect.github.com/ruudk)! - Errors with `argument.named` are ignorable now (https://github.com/phpstan/phpstan-src/commit/193b4f518d53eb3648b09ff131f83979067fec59) - Normalize path in TypeInferenceTestCase ([#​3449](https://redirect.github.com/phpstan/phpstan-src/pull/3449)), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix duplicate paths in `composerAutoloaderProjectPaths` on Windows ([#​3451](https://redirect.github.com/phpstan/phpstan-src/pull/3451)), thanks [@​staabm](https://redirect.github.com/staabm)! - Update nikic/php-parser to 4.19.2 (https://github.com/phpstan/phpstan-src/commit/05630e67fa3809191253e660765573263daab2b9) - Allow toggling `treatPhpDocTypesAsCertain` tip ([#​3452](https://redirect.github.com/phpstan/phpstan-src/pull/3452)), [#​11689](https://redirect.github.com/phpstan/phpstan/issues/11689), thanks [@​ruudk](https://redirect.github.com/ruudk)! # Bugfixes πŸ› - Fix conditional types in `array_map()` return value ([#​3425](https://redirect.github.com/phpstan/phpstan-src/pull/3425)), [#​10715](https://redirect.github.com/phpstan/phpstan/issues/10715), [#​11056](https://redirect.github.com/phpstan/phpstan/issues/11056), [#​10685](https://redirect.github.com/phpstan/phpstan/issues/10685), thanks [@​rvanvelzen](https://redirect.github.com/rvanvelzen)! - Fix false positive when extending SplObjectStorage on PHP < 8.4 by updating BetterReflection ([https://github.com/Roave/BetterReflection/pull/1448](https://redirect.github.com/Roave/BetterReflection/pull/1448), https://github.com/phpstan/phpstan-src/commit/fd25c2779ca7fd4decee7038282ab9743b16d167), [#​11665](https://redirect.github.com/phpstan/phpstan/issues/11665), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Prevent warning in `range()` on PHP 7.x ([#​3424](https://redirect.github.com/phpstan/phpstan-src/pull/3424)), thanks [@​staabm](https://redirect.github.com/staabm)! - Process expression assignments other than Variable in by-ref parameters (https://github.com/phpstan/phpstan-src/commit/d3a2a92fcd612bf42bbfd19cd3a5625481ff7522), [#​11667](https://redirect.github.com/phpstan/phpstan/issues/11667), [#​8781](https://redirect.github.com/phpstan/phpstan/issues/8781) - Allow nonexistent other-than-Variable expressions in by-ref parameters (https://github.com/phpstan/phpstan-src/commit/00d2caf39514380610899b0a305413f60c1c5830), [#​11617](https://redirect.github.com/phpstan/phpstan/issues/11617), [#​5077](https://redirect.github.com/phpstan/phpstan/issues/5077), [#​9361](https://redirect.github.com/phpstan/phpstan/issues/9361), [#​7251](https://redirect.github.com/phpstan/phpstan/issues/7251), [#​2313](https://redirect.github.com/phpstan/phpstan/issues/2313), [#​11655](https://redirect.github.com/phpstan/phpstan/issues/11655), [#​2634](https://redirect.github.com/phpstan/phpstan/issues/2634) - Fix false positive when type casting in If\_ statement ([#​3431](https://redirect.github.com/phpstan/phpstan-src/pull/3431)), [#​11674](https://redirect.github.com/phpstan/phpstan/issues/11674), thanks [@​staabm](https://redirect.github.com/staabm)! - Simplify abs return type ([#​3433](https://redirect.github.com/phpstan/phpstan-src/pull/3433)), [#​9224](https://redirect.github.com/phpstan/phpstan/issues/9224), thanks [@​rvanvelzen](https://redirect.github.com/rvanvelzen)! - Fix late static binding calls ([#​3361](https://redirect.github.com/phpstan/phpstan-src/pull/3361)), [#​10469](https://redirect.github.com/phpstan/phpstan/issues/10469), thanks [@​mvorisek](https://redirect.github.com/mvorisek)! - Fix string types sorting ([#​3441](https://redirect.github.com/phpstan/phpstan-src/pull/3441)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - RegexArrayShapeMatcher - Fix matching literal dot character ([#​3444](https://redirect.github.com/phpstan/phpstan-src/pull/3444)), [#​11699](https://redirect.github.com/phpstan/phpstan/issues/11699), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix infer new templated type from initial assign into static property ([#​3364](https://redirect.github.com/phpstan/phpstan-src/pull/3364)), [#​5551](https://redirect.github.com/phpstan/phpstan/issues/5551), thanks [@​mvorisek](https://redirect.github.com/mvorisek)! - `range()` with float step should return an array of floats ([#​3447](https://redirect.github.com/phpstan/phpstan-src/pull/3447)), [#​11692](https://redirect.github.com/phpstan/phpstan/issues/11692), thanks [@​staabm](https://redirect.github.com/staabm)! - Narrow string on `*strlen()` with positive-int ([#​3407](https://redirect.github.com/phpstan/phpstan-src/pull/3407)), [#​11558](https://redirect.github.com/phpstan/phpstan/issues/11558), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix late static binding calls for first class callable ([#​3435](https://redirect.github.com/phpstan/phpstan-src/pull/3435)), thanks [@​mvorisek](https://redirect.github.com/mvorisek)! - E_ALL value is different on PHP 8.4 (https://github.com/phpstan/phpstan-src/commit/cb8f9103f4191f176d1b52cc45f661c3326f194f) # Function signature fixes πŸ€– - Fix SplObjectStorage generic stub for PHP 8.4 (https://github.com/phpstan/phpstan-src/commit/9d9fb560907fcd4f6dd16789af4278ac7f683736) # Internals πŸ” - Extract getMessageFromInternalError (https://github.com/phpstan/phpstan-src/commit/d047c7f8ef8da296d0498696635735eed1762a4e) - Optimize NodeScopeResolverTest when running with `paratest` ([#​3440](https://redirect.github.com/phpstan/phpstan-src/pull/3440)), thanks [@​schlndh](https://redirect.github.com/schlndh)! - Expose `Output::isDecorated` and `Output::isVeryVerbose` ([#​3436](https://redirect.github.com/phpstan/phpstan-src/pull/3436)), thanks [@​ruudk](https://redirect.github.com/ruudk)! - Simplify SubstrDynamicReturnTypeExtension ([#​3439](https://redirect.github.com/phpstan/phpstan-src/pull/3439)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - CollectedDataNode is VirtualNode (https://github.com/phpstan/phpstan-src/commit/2d613997f5a9298b2446d1a0b2f01a565ed8a457) ### [`v1.12.3`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.12.3) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.12.2...1.12.3) # Improvements πŸ”§ - PHPStan Pro: debug corrupted PHAR signature message (https://github.com/phpstan/phpstan-src/commit/9815bbba4535b0605aef5b5cb9dd64a63bc44b1f) # Bugfixes πŸ› - Revert "Fix phar.yml workflow" (https://github.com/phpstan/phpstan-src/commit/6973519742ab804f57885c099b74971f465c7b24), [#​11638](https://redirect.github.com/phpstan/phpstan/issues/11638) - Refactor `ArrayFilterFunctionReturnTypeReturnTypeExtension` and support first-class callable ([#​3329](https://redirect.github.com/phpstan/phpstan-src/pull/3329)), [#​11337](https://redirect.github.com/phpstan/phpstan/issues/11337), thanks [@​takaram](https://redirect.github.com/takaram)! - Prevent resolving conditional types in callable param/return types ([#​3405](https://redirect.github.com/phpstan/phpstan-src/pull/3405)), [#​11472](https://redirect.github.com/phpstan/phpstan/issues/11472), thanks [@​rvanvelzen](https://redirect.github.com/rvanvelzen)! - Fix wrongly convertion of `list` to `array{T}` ([#​3412](https://redirect.github.com/phpstan/phpstan-src/pull/3412)), [#​11642](https://redirect.github.com/phpstan/phpstan/issues/11642), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix internal error (https://github.com/phpstan/phpstan-src/commit/052f6b130f53ad50f571b81d4d468b0b0026c2fd), [#​11649](https://redirect.github.com/phpstan/phpstan/issues/11649) - Missing typehints should be consistently checked on level 6 (https://github.com/phpstan/phpstan-src/commit/e3e80f6c9c246d13e41188d508f0f4afb631b9af), [#​11657](https://redirect.github.com/phpstan/phpstan/issues/11657) # Function signature fixes πŸ€– - Don't prevent checking for `curl_init()` false returns ([#​3409](https://redirect.github.com/phpstan/phpstan-src/pull/3409)), [#​11640](https://redirect.github.com/phpstan/phpstan/issues/11640), thanks [@​tscni](https://redirect.github.com/tscni)! - Update phpstorm-stubs and patch ([#​3393](https://redirect.github.com/phpstan/phpstan-src/pull/3393)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! # Internals πŸ” - The `COMPOSER_ROOT_VERSION` hack should no longer be necessary ([#​3414](https://redirect.github.com/phpstan/phpstan-src/pull/3414)) - Add non regression test ([#​3416](https://redirect.github.com/phpstan/phpstan-src/pull/3416)), [#​4960](https://redirect.github.com/phpstan/phpstan/issues/4960), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Add non regression test ([#​3415](https://redirect.github.com/phpstan/phpstan-src/pull/3415)), [#​10499](https://redirect.github.com/phpstan/phpstan/issues/10499), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! ### [`v1.12.2`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.12.2) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.12.1...1.12.2) # Improvements πŸ”§ - PHP 8.4 - report deprecated implicitly nullable parameter types (https://github.com/phpstan/phpstan-src/commit/9bd027c56330c0f5cc2abab2159549373539583d), [#​11413](https://redirect.github.com/phpstan/phpstan/issues/11413) # Bugfixes πŸ› - Run `@mixin` class reflection extensions after all other class reflection extensions (https://github.com/phpstan/phpstan-src/commit/c889baa9ec60394e9201b2a7054486c66b40fa9b), [#​11624](https://redirect.github.com/phpstan/phpstan/issues/11624), [#​11342](https://redirect.github.com/phpstan/phpstan/issues/11342), [#​10159](https://redirect.github.com/phpstan/phpstan/issues/10159), [https://github.com/larastan/larastan/issues/2032](https://redirect.github.com/larastan/larastan/issues/2032) - RegexArrayShapeMatcher - Don't optimize alternations with optional groups for tagged unions ([#​3395](https://redirect.github.com/phpstan/phpstan-src/pull/3395)), [#​11604](https://redirect.github.com/phpstan/phpstan/issues/11604), thanks [@​staabm](https://redirect.github.com/staabm)! - Narrow array on `count()` with `positive-int` ([#​3389](https://redirect.github.com/phpstan/phpstan-src/pull/3389)), thanks [@​staabm](https://redirect.github.com/staabm)! - Improve narrowing after string functions ([#​3390](https://redirect.github.com/phpstan/phpstan-src/pull/3390)), thanks [@​staabm](https://redirect.github.com/staabm)! - Add `Type::reverseArray()` ([#​3344](https://redirect.github.com/phpstan/phpstan-src/pull/3344)), thanks [@​herndlm](https://redirect.github.com/herndlm)! # Function signature fixes πŸ€– - `version_compare()` operator arg can be null ([#​3399](https://redirect.github.com/phpstan/phpstan-src/pull/3399)), [#​4457](https://redirect.github.com/phpstan/phpstan/issues/4457), thanks [@​staabm](https://redirect.github.com/staabm)! # Internals πŸ” - Regression test ([#​3396](https://redirect.github.com/phpstan/phpstan-src/pull/3396)), [#​6642](https://redirect.github.com/phpstan/phpstan/issues/6642), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Simplify isFloat checks ([#​3397](https://redirect.github.com/phpstan/phpstan-src/pull/3397)), thanks [@​staabm](https://redirect.github.com/staabm)! ### [`v1.12.1`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.12.1) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.12.0...1.12.1) # Bleeding edge πŸ”ͺ - Check if required file exists ([#​3294](https://redirect.github.com/phpstan/phpstan-src/pull/3294)), [#​3397](https://redirect.github.com/phpstan/phpstan/issues/3397), thanks [@​Bellangelo](https://redirect.github.com/Bellangelo)! - Check generics `@method` `@template` tags above traits (https://github.com/phpstan/phpstan-src/commit/aadbf62d3ae4517fc7a212b07130bedcef8d13ac) - Check `@mixin` PHPDoc tag above traits (https://github.com/phpstan/phpstan-src/commit/0d0de946900adf4eb3c799b1b547567536e23147) *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.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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements πŸ”§ - Allow dot-prefixed config files ([#​3354](https://redirect.github.com/phpstan/phpstan-src/pull/3354)), thanks [@​sreichel](https://redirect.github.com/sreichel)! - Respect dist order over dot order ([#​3379](https://redirect.github.com/phpstan/phpstan-src/pull/3379)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Update PhpStorm stubs + refactor WithoutSideEffectsRule classes ([#​3377](https://redirect.github.com/phpstan/phpstan-src/pull/3377)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - TypeSpecifier: Narrow `(bool) $expr` like `$expr != false` ([#​3380](https://redirect.github.com/phpstan/phpstan-src/pull/3380)), [#​8881](https://redirect.github.com/phpstan/phpstan/issues/8881), [#​7685](https://redirect.github.com/phpstan/phpstan/issues/7685), [#​6006](https://redirect.github.com/phpstan/phpstan/issues/6006), [#​10528](https://redirect.github.com/phpstan/phpstan/issues/10528), thanks [@​staabm](https://redirect.github.com/staabm)! - TypeSpecifier: Narrow `(string) $expr` like `$expr != false` ([#​3387](https://redirect.github.com/phpstan/phpstan-src/pull/3387)), thanks [@​staabm](https://redirect.github.com/staabm)! - TypeSpecifier: Narrow `(int) $expr` like `$expr != false` ([#​3384](https://redirect.github.com/phpstan/phpstan-src/pull/3384)), thanks [@​staabm](https://redirect.github.com/staabm)! - TypeSpecifier: Narrow `(float) $expr` like `$expr != false` ([#​3391](https://redirect.github.com/phpstan/phpstan-src/pull/3391)), thanks [@​staabm](https://redirect.github.com/staabm)! - Add missing rule to StubValidator (https://github.com/phpstan/phpstan-src/commit/085fcf40fefa63fc3672897276e460a6405206fb) - Support `@mixin` above traits (https://github.com/phpstan/phpstan-src/commit/f5e2e32932644d61b3745e3b0f2c0910f722a86d) # Bugfixes πŸ› - Fix `array_filter` with callback optional persistance ([#​3366](https://redirect.github.com/phpstan/phpstan-src/pull/3366)), [#​11570](https://redirect.github.com/phpstan/phpstan/issues/11570), thanks [@​robotomarvin](https://redirect.github.com/robotomarvin)! - RegexArrayShapeMatcher - infer constant string types in alternations ([#​3369](https://redirect.github.com/phpstan/phpstan-src/pull/3369)), [#​11222](https://redirect.github.com/phpstan/phpstan/issues/11222), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - improve type inference in alternations ([#​3375](https://redirect.github.com/phpstan/phpstan-src/pull/3375)), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix error on offset assignment to specialized strings ([#​3365](https://redirect.github.com/phpstan/phpstan-src/pull/3365)), [#​11572](https://redirect.github.com/phpstan/phpstan/issues/11572), thanks [@​staabm](https://redirect.github.com/staabm)! - Narrow string on `strlen() ==` and `===` comparison with integer range ([#​3342](https://redirect.github.com/phpstan/phpstan-src/pull/3342)), [#​11548](https://redirect.github.com/phpstan/phpstan/issues/11548), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix `get_debug_type` produces wrong type for anonymous classes with parent ([#​3374](https://redirect.github.com/phpstan/phpstan-src/pull/3374)), [#​11562](https://redirect.github.com/phpstan/phpstan/issues/11562), thanks [@​patrickkusebauch](https://redirect.github.com/patrickkusebauch)! - Fix preserving list when setting union offset type to a ConstantArrayTypeBuilder ([#​3382](https://redirect.github.com/phpstan/phpstan-src/pull/3382)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Fix `preg_replace()` return type ([#​3338](https://redirect.github.com/phpstan/phpstan-src/pull/3338)), [#​11547](https://redirect.github.com/phpstan/phpstan/issues/11547), thanks [@​staabm](https://redirect.github.com/staabm)! - Detect function variadic-ness anywhere deep in the declaration file ([#​3370](https://redirect.github.com/phpstan/phpstan-src/pull/3370)), [#​11559](https://redirect.github.com/phpstan/phpstan/issues/11559), [#​4753](https://redirect.github.com/phpstan/phpstan/issues/4753), thanks [@​staabm](https://redirect.github.com/staabm)! - Add DateTimeSubMethodThrowTypeExtension ([#​3378](https://redirect.github.com/phpstan/phpstan-src/pull/3378)), [#​11503](https://redirect.github.com/phpstan/phpstan/issues/11503), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Do not report `static` in PHPDoc tags above traits as an error (https://github.com/phpstan/phpstan-src/commit/777a82a0dc9d6a64a709c30a2e5bdb030b634464), [#​11591](https://redirect.github.com/phpstan/phpstan/issues/11591) - RegexArrayShapeMatcher - Fix alternations containing a `$`-only case ([#​3394](https://redirect.github.com/phpstan/phpstan-src/pull/3394)), [#​11622](https://redirect.github.com/phpstan/phpstan/issues/11622), thanks [@​staabm](https://redirect.github.com/staabm)! - Do not report missing implementation abstract method from trait when it's implicitly implemented by enum (https://github.com/phpstan/phpstan-src/commit/c50b71fd961e9009419b8fddac835b15696f4ff5), [#​11592](https://redirect.github.com/phpstan/phpstan/issues/11592) - Fix how well conditional types play with pre-existing `@param-out` variable after assignment (https://github.com/phpstan/phpstan-src/commit/5892e8debfbe2f44306e6707c457665784b7dacd), [#​11580](https://redirect.github.com/phpstan/phpstan/issues/11580), [#​6642](https://redirect.github.com/phpstan/phpstan/issues/6642) # Internals πŸ” - Debugging function - `PHPStan\debugScope()` (https://github.com/phpstan/phpstan-src/commit/5909fb2dc78cbee46927c2cb23f7491dfef34165) - Added regression test ([#​3368](https://redirect.github.com/phpstan/phpstan-src/pull/3368)), [#​7856](https://redirect.github.com/phpstan/phpstan/issues/7856), thanks [@​staabm](https://redirect.github.com/staabm)! - Simplify specifyTypesForConstantBinaryExpression ([#​3392](https://redirect.github.com/phpstan/phpstan-src/pull/3392)), thanks [@​staabm](https://redirect.github.com/staabm)! - Refactoring: introduce MethodTagTemplateTypeCheck (https://github.com/phpstan/phpstan-src/commit/47a85bf1453a076bade7a30c94c06c0825abca7c) - Simplify extensions (https://github.com/phpstan/phpstan-src/commit/c47730f1f97e4dc6ca9f120e2675ca709fc1402c) - Refactoring - extract MixinCheck (https://github.com/phpstan/phpstan-src/commit/57ccd8c4d4b16c7edec4c2c2de8589956de8284d) - MixinCheck - prepare for trait rules (https://github.com/phpstan/phpstan-src/commit/ba591420c26b174ae561e26aeed01ccf34da9dee) ### [`v1.12.0`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.12.0) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.11...1.12.0) [**Read all about PHPStan 1.12 on phpstan.org Β»**](https://phpstan.org/blog/phpstan-1-12-road-to-phpstan-2-0) # Major new features πŸš€ - Precise type for `$matches` from `preg_match` generally available, out of bleeding edge (https://github.com/phpstan/phpstan-src/commit/bd2cec118592f7c66dff5a7ae28882654daf6468) - PHP 8.4 runtime support - PHPStan runs on PHP 8.4 without emitting deprecation notices - Full support for PHP 8.4 including new syntax and rules is coming later, after PHPStan 2.0 release # Bleeding edge πŸ”ͺ - More precise types for bcmath function parameters ([#​2217](https://redirect.github.com/phpstan/phpstan-src/pull/2217)), thanks [@​Warxcell](https://redirect.github.com/Warxcell)! - Enforce `@no-named-arguments` (https://github.com/phpstan/phpstan-src/commit/74ba8c23696948f2647d880df72f375346f41010), [#​5968](https://redirect.github.com/phpstan/phpstan/issues/5968) - Check too wide private property type (https://github.com/phpstan/phpstan-src/commit/7453f4f75fae3d635063589467842aae29d88b54) - Consider implicit throw points when the only explicit one is Throw\_ (https://github.com/phpstan/phpstan-src/commit/22eef6d5ab9a4afafb2305258fea273be6cc06e4) - Check existing classes in `@param-out` (https://github.com/phpstan/phpstan-src/commit/30c4b9e80f51af8b5f166ba3aae93d8409c9c0ea), [#​10260](https://redirect.github.com/phpstan/phpstan/issues/10260) - Check existing classes in `@param-closure-this` (https://github.com/phpstan/phpstan-src/commit/2fa539a39e06bcc3155b109fd8d246703ceb176d), [#​10933](https://redirect.github.com/phpstan/phpstan/issues/10933) - Check invalid `@param-closure-this` (https://github.com/phpstan/phpstan-src/commit/95c0a5806c65c975201b9d3a464873f75a04c8b8), [#​10932](https://redirect.github.com/phpstan/phpstan/issues/10932) - Check `@param-immediately-invoked-callable` and `@param-later-invoked-callable` (https://github.com/phpstan/phpstan-src/commit/580a6add422f4e34191df9e7a77ba1655e914bda), [#​10932](https://redirect.github.com/phpstan/phpstan/issues/10932) - Check existing classes in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/6838669976bf20232abde36ecdd52b1770fa50c9) - Check missing types in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/892b319f25f04bc1b55c3d0063b607909612fe6d) - Check missing types in local type aliases (https://github.com/phpstan/phpstan-src/commit/ce7ffaf02d624a7fb9d38f8e5dffc9739f1233fc) - Check nonexistent classes in local type aliases (https://github.com/phpstan/phpstan-src/commit/2485b2e9c129e789ec3b2d7db81ca30f87c63911) - Check unresolvable types in local type aliases (https://github.com/phpstan/phpstan-src/commit/5f7d12b2fb2809525ab0e96eeae95093204ea4d3) - Check generics in local type aliases (https://github.com/phpstan/phpstan-src/commit/5a2d4416d94ab77a2a2e7e1bfaba4c5ed2a13c25) - Check missing types in `@mixin` (https://github.com/phpstan/phpstan-src/commit/3175c81f26fd5bcb4a161b24e774921870ed2533) - Check types in `@property` tags (https://github.com/phpstan/phpstan-src/commit/55ea2ae516df22a071ab873fdd6f748a3af0520e), [#​10752](https://redirect.github.com/phpstan/phpstan/issues/10752), [#​9356](https://redirect.github.com/phpstan/phpstan/issues/9356) - Check types in `@method` tags (https://github.com/phpstan/phpstan-src/commit/5b7e474680eaf33874b7ed6a227677adcbed9ca5) - Check `@extends`, `@implements`, `@use` for unresolvable types (https://github.com/phpstan/phpstan-src/commit/2bb528233edb75312614166e282776f279cf2018), [#​11552](https://redirect.github.com/phpstan/phpstan/issues/11552) *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.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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements πŸ”§ - Internal classes made `final`, `@api` classes made `@final` ([#​3264](https://redirect.github.com/phpstan/phpstan-src/pull/3264), https://github.com/phpstan/phpstan-src/commit/5baa146510b56c9571b3d85eba71c02d86f683bb) - Repair `PhpParser\Node\Stmt\Class_::isAnonymous()` ([#​3343](https://redirect.github.com/phpstan/phpstan-src/pull/3343)), thanks [@​tscni](https://redirect.github.com/tscni)! - Improve `curl_init()` return type analysis ([#​3346](https://redirect.github.com/phpstan/phpstan-src/pull/3346)), thanks [@​tscni](https://redirect.github.com/tscni)! - StubValidator - added missing rules (https://github.com/phpstan/phpstan-src/commit/7fc5ab8dfb3be8cc0c1daff7c17b6c6d98d8ca7a) - Do not allow `@phpstan-self-out` above static method (https://github.com/phpstan/phpstan-src/commit/0dfd8217699fc1c4796bcafbf2f6e04137938365) - Check unresolvable types in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/e182c0662df24e57c81b1d49e22963cad5ff5d13) - Check generics in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/9ebc315589ba2086279dd4c404ef77a33f8b43a7) - ConstExprNodeResolver - support ConstFetchNode for class constants (https://github.com/phpstan/phpstan-src/commit/3e51899dd7ed0e2785846f8ec820b4cd8214b993) - allowed in default parameter values in `@method` # Bugfixes πŸ› - PHPStanDiagnoseExtension - skip showing config files in "Included configs from Composer packages" if already present in the "Extension installer" section (https://github.com/phpstan/phpstan-src/commit/6c4477c9fcc2d62579cb1e353ca902b4b9ebb888) - Support multiple anonymous class definitions on the same line ([#​3328](https://redirect.github.com/phpstan/phpstan-src/pull/3328)), [#​5597](https://redirect.github.com/phpstan/phpstan/issues/5597), [#​11511](https://redirect.github.com/phpstan/phpstan/issues/11511), thanks [@​tscni](https://redirect.github.com/tscni)! - Fix ConstantArrayType not accepting NeverType ([#​3327](https://redirect.github.com/phpstan/phpstan-src/pull/3327)), [#​11517](https://redirect.github.com/phpstan/phpstan/issues/11517), thanks [@​tscni](https://redirect.github.com/tscni)! - Narrow to non-falsy-string from `strlen()` on integer range ([#​3337](https://redirect.github.com/phpstan/phpstan-src/pull/3337)), thanks [@​staabm](https://redirect.github.com/staabm)! - Narrow arrays in union based on `count()` with integer range ([#​3335](https://redirect.github.com/phpstan/phpstan-src/pull/3335)), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix description escaping in UsedTraitsRule (https://github.com/phpstan/phpstan-src/commit/4ffbb3b126d3c98fad4ad0906c76d24febdb89ed) # Internals πŸ” - Cleanup TypeSpecifier ([#​3340](https://redirect.github.com/phpstan/phpstan-src/pull/3340)), thanks [@​staabm](https://redirect.github.com/staabm)! - Refactor ReplaceFunctionsDynamicReturnTypeExtension ([#​3339](https://redirect.github.com/phpstan/phpstan-src/pull/3339)), thanks [@​staabm](https://redirect.github.com/staabm)! - BetterReflectionSourceLocator - playground mode (https://github.com/phpstan/phpstan-src/commit/7d1bde44afc0c0f7e3b29f2d75a7c33d5e6a56ec) - Internal PHPStan rule - class must be abstract or final (https://github.com/phpstan/phpstan-src/commit/d631120bea6af099cdcc85e3e12dc9f26bf6f1f5) - Downgrade PHP files in build/PHPStan (https://github.com/phpstan/phpstan-src/commit/fe503cad77b684f845a932644007c50684161b8d) - ExtendedPropertyReflection (https://github.com/phpstan/phpstan-src/commit/d65138a11f0654b710a27b4b563bff2ccf0b2c1b) - Replace `highlight_string()` stub with a return type extension ([#​3350](https://redirect.github.com/phpstan/phpstan-src/pull/3350)) - Issue bot - test PHP 8.4 ([#​3358](https://redirect.github.com/phpstan/phpstan-src/pull/3358)) ### [`v1.11.11`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.11.11) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.10...1.11.11) # Improvements πŸ”§ - Narrow arrays in union based on count() with smaller/greater operator ([#​3324](https://redirect.github.com/phpstan/phpstan-src/pull/3324)), [#​11480](https://redirect.github.com/phpstan/phpstan/issues/11480), thanks [@​staabm](https://redirect.github.com/staabm)! - PHPStanDiagnoseExtension - show Composer packages with included config files (https://github.com/phpstan/phpstan-src/commit/58d202fddc5597a1fa274ca3b64c352717818c4f) # Bugfixes πŸ› - RegexArrayShapeMatcher - optional non-last groups can be empty-string ([#​3306](https://redirect.github.com/phpstan/phpstan-src/pull/3306)), [#​11479](https://redirect.github.com/phpstan/phpstan/issues/11479), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - fix capturing item-array-shapes for preg_match_all ([#​3307](https://redirect.github.com/phpstan/phpstan-src/pull/3307)), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - Fix shape of single top level alternations ([#​3299](https://redirect.github.com/phpstan/phpstan-src/pull/3299)), [#​11462](https://redirect.github.com/phpstan/phpstan/issues/11462), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - Fix matching literal "-" in character classes ([#​3314](https://redirect.github.com/phpstan/phpstan-src/pull/3314)), [#​11490](https://redirect.github.com/phpstan/phpstan/issues/11490), thanks [@​staabm](https://redirect.github.com/staabm)! - Improve sprintf support ([#​3310](https://redirect.github.com/phpstan/phpstan-src/pull/3310)), [#​11491](https://redirect.github.com/phpstan/phpstan/issues/11491), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Handle union and mixed in plus operation ([#​3320](https://redirect.github.com/phpstan/phpstan-src/pull/3320)), [#​3759](https://redirect.github.com/phpstan/phpstan/issues/3759), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Fix union with float should accept integer range ([#​3318](https://redirect.github.com/phpstan/phpstan-src/pull/3318)), [#​10248](https://redirect.github.com/phpstan/phpstan/issues/10248), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Fix array_intersect_key ([#​3317](https://redirect.github.com/phpstan/phpstan-src/pull/3317)), [#​10561](https://redirect.github.com/phpstan/phpstan/issues/10561), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Improve non strict `in_array()` ([#​3319](https://redirect.github.com/phpstan/phpstan-src/pull/3319)), [#​9436](https://redirect.github.com/phpstan/phpstan/issues/9436), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - String offset access leads to non-empty-string (single character) (https://github.com/phpstan/phpstan-src/commit/9439bba42047ab9561a091292568d7adf58e42ce), [#​11506](https://redirect.github.com/phpstan/phpstan/issues/11506) - Fix `AccessoryLiteralStringType::setOffsetValueType()` (https://github.com/phpstan/phpstan-src/commit/93c5226cb5711c8b1b846fcfe6d5ef2586d2b162) - Fix `AccessoryNonFalsyStringType::setOffsetValueType()` (https://github.com/phpstan/phpstan-src/commit/c28c9362376286044b37755bedf49ab2228801dc) - Improve IntDivThrowTypeExtension to support integer ranges ([#​3325](https://redirect.github.com/phpstan/phpstan-src/pull/3325)), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! - Fix array intersection between HasOffsetType and HasOffsetValueType (https://github.com/phpstan/phpstan-src/commit/07d64058830765dbb3bf194cffdf66c98db20a38), [#​11518](https://redirect.github.com/phpstan/phpstan/issues/11518) - Fix item type in list to constant array conversion with `count()` ([#​3309](https://redirect.github.com/phpstan/phpstan-src/pull/3309)), thanks [@​staabm](https://redirect.github.com/staabm)! # Function signature fixes πŸ€– - Fix imagick definition ([#​3316](https://redirect.github.com/phpstan/phpstan-src/pull/3316)), [#​10803](https://redirect.github.com/phpstan/phpstan/issues/10803), thanks [@​VincentLanglet](https://redirect.github.com/VincentLanglet)! # Internals πŸ” - Turn Regex classes immutable where possible ([#​3305](https://redirect.github.com/phpstan/phpstan-src/pull/3305)), thanks [@​staabm](https://redirect.github.com/staabm)! ### [`v1.11.10`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.11.10) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.9...1.11.10) # Bleeding edge πŸ”ͺ - Precise array shape for `preg_replace_callback()` `$matches` ([#​3281](https://redirect.github.com/phpstan/phpstan-src/pull/3281)), thanks [@​staabm](https://redirect.github.com/staabm)! - Report invalid exclude paths in PHP config (https://github.com/phpstan/phpstan-src/commit/9718c14f1ffac81ba3d2bf331b4e8b4041a4d004) *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.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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements πŸ”§ - Allow nonexistent paths in excludePaths by appending `(?)` (https://github.com/phpstan/phpstan-src/commit/39649c2b9db016edabdb813dfe39ae0fd46e0c09, https://github.com/phpstan/phpstan-src/commit/be65babffe40c48c303411abf8a56116a274b893), [#​11436](https://redirect.github.com/phpstan/phpstan/issues/11436) - Do not report nonexistent paths in ignoreErrors if `reportUnmatchedIgnoredErrors: false` (https://github.com/phpstan/phpstan-src/commit/b7fe9900d5933ffdbdeeb2b10877fd2764cb8bb8), [#​11436](https://redirect.github.com/phpstan/phpstan/issues/11436) - Narrow tagged unions based on `count()` with array size ([#​3302](https://redirect.github.com/phpstan/phpstan-src/pull/3302)), thanks [@​staabm](https://redirect.github.com/staabm)! # Bugfixes πŸ› - RegularExpressionPatternRule: fix false positive in preg_quote() handling ([#​3280](https://redirect.github.com/phpstan/phpstan-src/pull/3280)), [#​11432](https://redirect.github.com/phpstan/phpstan/issues/11432), thanks [@​staabm](https://redirect.github.com/staabm)! - Support literal strings in RegexGroupParser ([#​3284](https://redirect.github.com/phpstan/phpstan-src/pull/3284)), thanks [@​staabm](https://redirect.github.com/staabm)! - Support classes of literal strings in RegexGroupParser ([#​3285](https://redirect.github.com/phpstan/phpstan-src/pull/3285)), thanks [@​staabm](https://redirect.github.com/staabm)! - Don't infer constant types for "i"-modfied patterns ([#​3288](https://redirect.github.com/phpstan/phpstan-src/pull/3288)), thanks [@​staabm](https://redirect.github.com/staabm)! - Support non-falsy-string in RegexGroupParser ([#​3289](https://redirect.github.com/phpstan/phpstan-src/pull/3289)), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexGroupParser: Ignore whitespaces on "x"-modified patterns ([#​3291](https://redirect.github.com/phpstan/phpstan/issues/3291)) ([#​3291](https://redirect.github.com/phpstan/phpstan-src/pull/3291)), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher: fix preg_match_all with PREG_OFFSET_CAPTURE ([#​3292](https://redirect.github.com/phpstan/phpstan-src/pull/3292)), [#​11457](https://redirect.github.com/phpstan/phpstan/issues/11457), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - Fix subject types ([#​3300](https://redirect.github.com/phpstan/phpstan-src/pull/3300)), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix `ConstantArrayType::isSuperTypeOf()` for empty array (https://github.com/phpstan/phpstan-src/commit/ed6bc0b93499b5c7463ba05aefb1377b9eb9d1e0) - is_resource: adjust type specification for truthy context only ([#​3298](https://redirect.github.com/phpstan/phpstan-src/pull/3298)), [#​9687](https://redirect.github.com/phpstan/phpstan/issues/9687), thanks [@​janedbal](https://redirect.github.com/janedbal)! - Fix loose comparison between '1' and '+1' ([#​3301](https://redirect.github.com/phpstan/phpstan-src/pull/3301)), thanks [@​thg2k](https://redirect.github.com/thg2k)! # Function signature fixes πŸ€– - Update some mysqli function return types ([#​3279](https://redirect.github.com/phpstan/phpstan-src/pull/3279)), [#​8345](https://redirect.github.com/phpstan/phpstan/issues/8345), thanks [@​mattschlosser](https://redirect.github.com/mattschlosser)! # Internals πŸ” - Extracted RegexGroupParser from RegexArrayShapeMatcher ([#​3278](https://redirect.github.com/phpstan/phpstan-src/pull/3278)), thanks [@​staabm](https://redirect.github.com/staabm)! - E2E test about path validation in ignoreErrors and excludePaths (https://github.com/phpstan/phpstan-src/commit/9246976958fb22e3464f7a25ef2ab97caed5aa44) - RegularExpressionPatternRuleTest: utilize `preg_match()` array shape tests ([#​3290](https://redirect.github.com/phpstan/phpstan-src/pull/3290)), thanks [@​staabm](https://redirect.github.com/staabm)! - Simplify RegexArrayShapeMatcher ([#​3293](https://redirect.github.com/phpstan/phpstan-src/pull/3293)), thanks [@​staabm](https://redirect.github.com/staabm)! - Refactor RegexGroupParser - extract RegexAlternation class ([#​3296](https://redirect.github.com/phpstan/phpstan-src/pull/3296)), thanks [@​staabm](https://redirect.github.com/staabm)! ### [`v1.11.9`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.11.9) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.8...1.11.9) # Bleeding edge πŸ”ͺ - RegularExpressionPatternRule: validate preg_quote'd patterns ([#​3270](https://redirect.github.com/phpstan/phpstan-src/pull/3270)), thanks [@​staabm](https://redirect.github.com/staabm)! - No implicit wildcard in FileExcluder (https://github.com/phpstan/phpstan-src/commit/e19e6e5f8cfa706cc30e44a17276a6bc269f995c), [#​10299](https://redirect.github.com/phpstan/phpstan/issues/10299) - Precise array shape for `preg_match_all()` $matches ([#​3256](https://redirect.github.com/phpstan/phpstan-src/pull/3256)), thanks [@​staabm](https://redirect.github.com/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.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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements πŸ”§ - DefaultStubFilesProvider - consider all composerAutoloaderProjectPaths when filtering 3rd party stub files (https://github.com/phpstan/phpstan-src/commit/582a0f8a744fa2ebda2d98783c55c78183e8bbed), [#​11393](https://redirect.github.com/phpstan/phpstan/issues/11393) # Bugfixes πŸ› - RegexArrayShapeMatcher: Fix non-emptiness of leading optional groups ([#​3267](https://redirect.github.com/phpstan/phpstan-src/pull/3267)), [#​11376](https://redirect.github.com/phpstan/phpstan/issues/11376), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher: Support resolving of constants in patterns ([#​3265](https://redirect.github.com/phpstan/phpstan-src/pull/3265)), [#​11384](https://redirect.github.com/phpstan/phpstan/issues/11384), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexExpressionHelper - Support all bracket style delimiters ([#​3273](https://redirect.github.com/phpstan/phpstan-src/pull/3273)), thanks [@​staabm](https://redirect.github.com/staabm)! - Regex parsing fixes for newline characters and marker verbs ([#​3268](https://redirect.github.com/phpstan/phpstan-src/pull/3268)), [#​11360](https://redirect.github.com/phpstan/phpstan/issues/11360), [#​8948](https://redirect.github.com/phpstan/phpstan/issues/8948), thanks [@​Seldaek](https://redirect.github.com/Seldaek)! - RegexArrayShapeMatcher - Support 'n' modifier ([#​3271](https://redirect.github.com/phpstan/phpstan-src/pull/3271)), thanks [@​staabm](https://redirect.github.com/staabm)! - Improve `abs()` return type ([#​3263](https://redirect.github.com/phpstan/phpstan-src/pull/3263)), [#​11367](https://redirect.github.com/phpstan/phpstan/issues/11367), thanks [@​julienfalque](https://redirect.github.com/julienfalque)! - UselessFunctionReturnValueRule: More precise error message ([#​3266](https://redirect.github.com/phpstan/phpstan-src/pull/3266)), [#​11377](https://redirect.github.com/phpstan/phpstan/issues/11377), thanks [@​staabm](https://redirect.github.com/staabm)! # Internals πŸ” - Extract RegexExpressionHelper ([#​3270](https://redirect.github.com/phpstan/phpstan-src/pull/3270)), thanks [@​staabm](https://redirect.github.com/staabm)! - Refactor RegexArrayShapeMatcher ([#​3274](https://redirect.github.com/phpstan/phpstan-src/pull/3274)), thanks [@​staabm](https://redirect.github.com/staabm)! ### [`v1.11.8`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.11.8) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.7...1.11.8) # Bleeding edge πŸ”ͺ - Report useless return values of function calls like `var_export` without `$return=true` ([#​3225](https://redirect.github.com/phpstan/phpstan-src/pull/3225)), [#​11320](https://redirect.github.com/phpstan/phpstan/issues/11320), thanks [@​staabm](https://redirect.github.com/staabm)! - Check mixed in binary operator ([#​3231](https://redirect.github.com/phpstan/phpstan-src/pull/3231)), [#​7538](https://redirect.github.com/phpstan/phpstan/issues/7538), [#​10440](https://redirect.github.com/phpstan/phpstan/issues/10440), thanks [@​schlndh](https://redirect.github.com/schlndh)! - Check vprintf/vsprintf arguments against placeholder count ([#​3126](https://redirect.github.com/phpstan/phpstan-src/pull/3126)), thanks [@​staabm](https://redirect.github.com/staabm)! - Check mixed in unary operator ([#​3253](https://redirect.github.com/phpstan/phpstan-src/pull/3253)), thanks [@​schlndh](https://redirect.github.com/schlndh)! - Report "missing return" error closer to where the return is missing (https://github.com/phpstan/phpstan-src/commit/04f8636e6577cbcaefc944725eed74c0d7865ead) - Stricter ++/-- operator check ([#​3255](https://redirect.github.com/phpstan/phpstan-src/pull/3255)), thanks [@​schlndh](https://redirect.github.com/schlndh)! - Check preg_quote delimiter sanity ([#​3252](https://redirect.github.com/phpstan/phpstan-src/pull/3252)), [#​11338](https://redirect.github.com/phpstan/phpstan/issues/11338), thanks [@​staabm](https://redirect.github.com/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.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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements πŸ”§ - Precise array shape for `$matches` from `preg_match()` improvements: - RegexArrayShapeMatcher - trailling groups are not optional when PREG_UNMATCHED_AS_NULL ([#​3219](https://redirect.github.com/phpstan/phpstan-src/pull/3219)), [#​11311](https://redirect.github.com/phpstan/phpstan/issues/11311), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix preg_match named capturing groups ([#​3228](https://redirect.github.com/phpstan/phpstan-src/pull/3228)), [#​11323](https://redirect.github.com/phpstan/phpstan/issues/11323), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - Fix optional groups with PREG_UNMATCHED_AS_NULL ([#​3229](https://redirect.github.com/phpstan/phpstan-src/pull/3229)), thanks [@​staabm](https://redirect.github.com/staabm)! - Allow overriding the PHP 7.2 support for PREG_UNMATCHED_AS_NULL ([#​3226](https://redirect.github.com/phpstan/phpstan-src/pull/3226)), thanks [@​Seldaek](https://redirect.github.com/Seldaek)! - RegexArrayShapeMatcher - Fix PREG_UNMATCHED_AS_NULL with optional leading groups ([#​3234](https://redirect.github.com/phpstan/phpstan-src/pull/3234)), [#​11331](https://redirect.github.com/phpstan/phpstan/issues/11331), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - Support preg_quote()'d patterns ([#​3233](https://redirect.github.com/phpstan/phpstan-src/pull/3233)), [#​11332](https://redirect.github.com/phpstan/phpstan/issues/11332), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - Fix PREG_UNMATCHED_AS_NULL with top level alternation ([#​3238](https://redirect.github.com/phpstan/phpstan-src/pull/3238)), thanks [@​staabm](https://redirect.github.com/staabm)! - RegexArrayShapeMatcher - More precise non-empty-string and numeric-string ([#​3249](https://redirect.github.com/phpstan/phpstan-src/pull/3249)), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix regex parsing by completing the grammar ([#​3244](https://redirect.github.com/phpstan/phpstan-src/pull/3244)), thanks [@​Seldaek](https://redirect.github.com/Seldaek)! - RegexArrayShapeMatcher - `(\d*)` can be empty-string ([#​3257](https://redirect.github.com/phpstan/phpstan-src/pull/3257)), thanks [@​staabm](https://redirect.github.com/staabm)! - Add `diagnose` command 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](https://redirect.github.com/phpstan/phpstan-src/pull/3224)), thanks [@​janedbal](https://redirect.github.com/janedbal)! - Add hint as to what might be wrong when invalid identifiers are used ([#​3230](https://redirect.github.com/phpstan/phpstan-src/pull/3230)), thanks [@​Seldaek](https://redirect.github.com/Seldaek)! - Optimize array_map with many arrays (https://github.com/phpstan/phpstan-src/commit/09fbc92c415a2b9789463b3ca8fa7c73cc3475bd), [#​11297](https://redirect.github.com/phpstan/phpstan/issues/11297) - Improved `sprintf()` inference ([#​3232](https://redirect.github.com/phpstan/phpstan-src/pull/3232)), thanks [@​staabm](https://redirect.github.com/staabm)! - Print elapsed analysis time with `-v` ([#​3239](https://redirect.github.com/phpstan/phpstan-src/pull/3239), [#​3242](https://redirect.github.com/phpstan/phpstan-src/pull/3242)), thanks [@​janedbal](https://redirect.github.com/janedbal)! - More precise `sprintf()` format arg-based return type ([#​3192](https://redirect.github.com/phpstan/phpstan-src/pull/3192)), [#​11248](https://redirect.github.com/phpstan/phpstan/issues/11248), [#​10493](https://redirect.github.com/phpstan/phpstan/issues/10493), thanks [@​staabm](https://redirect.github.com/staabm)! # Bugfixes πŸ› - Fix return type of round/ceil/floor in non strict type environment ([#​3223](https://redirect.github.com/phpstan/phpstan-src/pull/3223)), [#​11319](https://redirect.github.com/phpstan/phpstan/issues/11319), thanks [@​BackEndTea](https://redirect.github.com/BackEndTea)! - Fix statement analysis after early-terminating statements ([#​3227](https://redirect.github.com/phpstan/phpstan-src/pull/3227)), [#​11179](https://redirect.github.com/phpstan/phpstan/issues/11179), thanks [@​takaram](https://redirect.github.com/takaram)! - Fix match of union of enums (https://github.com/phpstan/phpstan-src/commit/44e40f054569f3eeed81280bf0d2f50659fb1056), [#​11313](https://redirect.github.com/phpstan/phpstan/issues/11313) - Fix `pathinfo()` return type for union type flags ([#​3120](https://redirect.github.com/phpstan/phpstan-src/pull/3120)), [#​10760](https://redirect.github.com/phpstan/phpstan/issues/10760), thanks [@​staabm](https://redirect.github.com/staabm)! - Fix and simplify discovering composer autoloader project path (https://github.com/phpstan/phpstan-src/commit/2cc6cda6969a63267e70c2074efa0477b69c9083) - Ignore non-explicit NeverType in purity check ([#​3243](https://redirect.github.com/phpstan/phpstan-src/pull/3243)), [#​11207](https://redirect.github.com/phpstan/phpstan/issues/11207), thanks [@​staabm](https://redirect.github.com/staabm)! - Non-numeric strings in `pow()` lead to error ([#​2796](https://redirect.github.com/phpstan/phpstan-src/pull/2796)), [#​10125](https://redirect.github.com/phpstan/phpstan/issues/10125), thanks [@​staabm](https://redirect.github.com/staabm)! - Closure with by-ref parameter is impure (https://github.com/phpstan/phpstan-src/commit/f1abacddb3787ce279e51b1f88f1543d52b9759c), [#​11361](https://redirect.github.com/phpstan/phpstan/issues/11361) - PathRoutingParser - check if the file is a symlink that might be in analysed paths (https://github.com/phpstan/phpstan-src/commit/c9a6d2e61edfad189a765df3c3a06674a10d4fb5), [#​6585](https://redirect.github.com/phpstan/phpstan/issues/6585) # Function signature fixes πŸ€– - Fix new headers functions in php 8.4 ([#​3221](https://redirect.github.com/phpstan/phpstan-src/pull/3221)), thanks [@​Seldaek](https://redirect.github.com/Seldaek)! # Internals πŸ” - Indicate file on TypeInferenceTestCase validation errors ([#​3166](https://redirect.github.com/phpstan/phpstan-src/pull/3166)), thanks [@​staabm](https://redirect.github.com/staabm)! - nette/di - patch for PHP 8.4 support (https://github.com/phpstan/phpstan-src/commit/1245ea73e5a24aefc4fac87ebe73d9720deac7c9) - InternalError is part of `@api` ([#​3240](https://redirect.github.com/phpstan/phpstan-src/pull/3240)), thanks [@​janedbal](https://redirect.github.com/janedbal)! - Refactor RegexArrayShapeMatcher ([#​3248](https://redirect.github.com/phpstan/phpstan-src/pull/3248)), thanks [@​staabm](https://redirect.github.com/staabm)! - Refactor PrintfParametersRule ([#​3247](https://redirect.github.com/phpstan/phpstan-src/pull/3247)), thanks [@​staabm](https://redirect.github.com/staabm)! - Simplify RegularExpressionPatternRule ([#​3251](https://redirect.github.com/phpstan/phpstan-src/pull/3251)), thanks [@​staabm](https://redirect.github.com/staabm)! - Copy regex grammar from hoa/regex into the project (https://github.com/phpstan/phpstan-src/commit/bacb3c6d11edb5f30176e70ade6e72ac4f2e23dd) - Apply Grammar.patch to reflect previous phpstan state (https://github.com/phpstan/phpstan-src/commit/e71cff468aa4695e9bfa09d01e0ec5194890e7f1) - ExecutionEndNode always has a statement (https://github.com/phpstan/phpstan-src/commit/27e0f91efad4c9fcacae98b2e3394c069e9e5095) - Fix PHP_VERSION_ID comparison in test ([#​3254](https://redirect.github.com/phpstan/phpstan-src/pull/3254)), thanks [@​staabm](https://redirect.github.com/staabm)! - Apply the stricter signatures for PHP 8.0 after the basic ones for PHP 8.0 ([#​3259](https://redirect.github.com/phpstan/phpstan-src/pull/3259)), thanks [@​thg2k](https://redirect.github.com/thg2k)! - Refactor function signature map files loading ([#​3262](https://redirect.github.com/phpstan/phpstan-src/pull/3262)), thanks [@​thg2k](https://redirect.github.com/thg2k)! ### [`v1.11.7`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.11.7) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.6...1.11.7) # Improvements πŸ”§ - Rework `match` expression analysis with enum with performance in mind (https://github.com/phpstan/phpstan-src/commit/b98abe01ca2a589c964970ea42128ae9b752890b), [#​11263](https://redirect.github.com/phpstan/phpstan/issues/11263) - DiagnoseExtension (https://github.com/phpstan/phpstan-src/commit/d55933fa0c8d6c9d91c5d30f70313e1c15b2c7f9) - This extension can output any diagnostic information to stderr after analysis - PHPStan displays this information when running the "analyse" command with `-vvv` CLI option. - Result cache - debug message about successfully restored cache (https://github.com/phpstan/phpstan-src/commit/979055fceeaefec30c1eded52550012f0c1333b6) - Show a hint about `-vv` for unignorable errors when generating the baseline (https://github.com/phpstan/phpstan-src/commit/d931c8987563fbe5a05e411722a6f53da6f1b555), [#​3973](https://redirect.github.com/phpstan/phpstan/issues/3973) - Limit the depth when resolving closure type for performance reasons (https://github.com/phpstan/phpstan-src/commit/2c08dfa8d0f975654d52fe279a950c54415076b5?w=1), [#​11283](https://redirect.github.com/phpstan/phpstan/issues/11283) - `MutatingScope::resolveType()` - cache closure body analysis data (https://github.com/phpstan/phpstan-src/commit/fd3115652b76278fa6ddf8ba40b41fc751642153), [#​11283](https://redirect.github.com/phpstan/phpstan/issues/11283) # Bugfixes πŸ› - Observe `@no-named-arguments` above class (https://github.com/phpstan/phpstan-src/commit/815270d8933b9cdefa4613f0baf17bcbff91be6f), [#​11275](https://redirect.github.com/phpstan/phpstan/issues/11275) - Fix `count()` narrowing on $matches ([#​3210](https://redirect.github.com/phpstan/phpstan-src/pull/3210)), [#​11277](https://redirect.github.com/phpstan/phpstan/issues/11277), thanks [@​staabm](https://redirect.github.com/staabm)! - Try preventing "Method was not found in reflection of class" when getting a method prototype (https://github.com/phpstan/phpstan-src/commit/25658f64f0bcfe784893104864d92032cce33e96), [#​11269](https://redirect.github.com/phpstan/phpstan/issues/11269), [#​11251](https://redirect.github.com/phpstan/phpstan/issues/11251) - RegexArrayShapeMatcher - support resetting non-capturing groups ([#​3212](https://redirect.github.com/phpstan/phpstan-src/pull/3212)), [#​11291](https://redirect.github.com/phpstan/phpstan/issues/11291), thanks [@​staabm](https://redirect.github.com/staabm)! - Prevent out-of-memory errors while regex array shape inference ([#​3213](https://redirect.github.com/phpstan/phpstan-src/pull/3213)), [#​11292](https://redirect.github.com/phpstan/phpstan/issues/11292), thanks [@​staabm](https://redirect.github.com/staabm)! # Function signature fixes πŸ€– - `getimagesize`, `getimagesizefromstring`: zero is a possible value for height and width ([#​3207](https://redirect.github.com/phpstan/phpstan-src/pull/3207)), thanks [@​mfruehauf](https://redirect.github.com/mfruehauf)! # Internals πŸ” - Faster `ObjectType::getEnumCases()` ([#​3203](https://redirect.github.com/phpstan/phpstan-src/pull/3203), [#​3204](https://redirect.github.com/phpstan/phpstan-src/pull/3204)), [#​11263](https://redirect.github.com/phpstan/phpstan/issues/11263), thanks [@​staabm](https://redirect.github.com/staabm)! - Update composer-dependency-analyser to 1.6.0 ([#​3205](https://redirect.github.com/phpstan/phpstan-src/pull/3205)), thanks [@​janedbal](https://redirect.github.com/janedbal)! ### [`v1.11.6`](https://redirect.github.com/phpstan/phpstan/compare/1.11.5...1.11.6) [Compare Source](https://redirect.github.com/phpstan/phpstan/compare/1.11.5...1.11.6) ### [`v1.11.5`](https://redirect.github.com/phpstan/phpstan/releases/tag/1.11.5) [Compare Source](https://redirect.github.com/phpst

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.