phpstan / php-8-stubs

MIT License
27 stars 8 forks source link

fix(deps): update extractor #92

Closed renovate[bot] closed 4 months ago

renovate[bot] commented 6 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nikic/php-parser 5.0.1 -> 5.0.2 age adoption passing confidence
phpstan/phpdoc-parser 1.26.0 -> 1.28.0 age adoption passing confidence
phpstan/phpstan 1.10.59 -> 1.10.67 age adoption passing confidence
symfony/console (source) 7.0.4 -> 7.0.7 age adoption passing confidence
symfony/finder (source) 7.0.0 -> 7.0.7 age adoption passing confidence

Release Notes

nikic/PHP-Parser (nikic/php-parser) ### [`v5.0.2`](https://togithub.com/nikic/PHP-Parser/blob/HEAD/CHANGELOG.md#Version-502-2024-03-05) [Compare Source](https://togithub.com/nikic/PHP-Parser/compare/v5.0.1...v5.0.2) ##### Fixed - Fix handling of indentation on next line after opening PHP tag in formatting-preserving pretty printer. ##### Changed - Avoid cyclic references in `Parser` objects. This means that no longer used parser objects are immediately destroyed now, instead of requiring cycle GC. - Update `PhpVersion::getNewestSupported()` to report PHP 8.3 instead of PHP 8.2.
phpstan/phpdoc-parser (phpstan/phpdoc-parser) ### [`v1.28.0`](https://togithub.com/phpstan/phpdoc-parser/releases/tag/1.28.0) [Compare Source](https://togithub.com/phpstan/phpdoc-parser/compare/1.27.0...1.28.0) - [cd06d6b](http://github.com/phpstan/phpdoc-parser/commit/cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb) - Add `@phan-` prefixes for recognized doc tags ### [`v1.27.0`](https://togithub.com/phpstan/phpdoc-parser/releases/tag/1.27.0) [Compare Source](https://togithub.com/phpstan/phpdoc-parser/compare/1.26.0...1.27.0) - [86e4d5a](http://github.com/phpstan/phpdoc-parser/commit/86e4d5a4b036f8f0be1464522f4c6b584c452757) - Support for `@param-closure-this` - [8ce0d65](http://github.com/phpstan/phpdoc-parser/commit/8ce0d65bcdd2c7f1c494746f4d1ee50d056f48fc) - Support for `@param-immediately-invoked-callable` and `@param-later-invoked-callable`
phpstan/phpstan (phpstan/phpstan) ### [`v1.10.67`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.67) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.66...1.10.67) **This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.** # Improvements 🔧 - Forbid PHPUnitPHAR prefixed classes ([#​3002](https://togithub.com/phpstan/phpstan-src/pull/3002)), thanks [@​staabm](https://togithub.com/staabm)! - Improve error messages on unnamed parameters ([#​3010](https://togithub.com/phpstan/phpstan-src/pull/3010)), [#​10814](https://togithub.com/phpstan/phpstan/issues/10814), thanks [@​takaram](https://togithub.com/takaram)! # Bugfixes 🐛 - Improve `date()` return types ([#​2888](https://togithub.com/phpstan/phpstan-src/pull/2888)), [#​10468](https://togithub.com/phpstan/phpstan/issues/10468), [#​6613](https://togithub.com/phpstan/phpstan/issues/6613), thanks [@​zonuexe](https://togithub.com/zonuexe)! - Default value null does not make promoted property type nullable (https://github.com/phpstan/phpstan-src/commit/b2177e350f79176a5d53eaf75e37e5dce0053f8a), [#​9839](https://togithub.com/phpstan/phpstan/issues/9839) - Fix socket_select array types after call (https://github.com/phpstan/phpstan-src/commit/24c52494be982429eb6782ad859fb6cbd6fb3dee), [https://github.com/phpstan/phpstan/discussions/10285](https://togithub.com/phpstan/phpstan/discussions/10285) - Fix conditional types in PHPDocs from stubs for native functions (https://github.com/phpstan/phpstan-src/commit/8ae0b28a5c1e6f4e2c692caff0cd99df07f2486e) - Fix env int key problem (https://github.com/phpstan/phpstan-src/commit/e606fbedaea7e887456a771ce0dbb9572d16accf), [#​10833](https://togithub.com/phpstan/phpstan/issues/10833) - Fix false positives about uninitialized properties ([#​2897](https://togithub.com/phpstan/phpstan-src/pull/2897)), [#​10523](https://togithub.com/phpstan/phpstan/issues/10523), [#​10822](https://togithub.com/phpstan/phpstan/issues/10822), thanks [@​staabm](https://togithub.com/staabm)! - Incremented numeric-string should change to int/float ([#​2797](https://togithub.com/phpstan/phpstan-src/pull/2797)), [#​10122](https://togithub.com/phpstan/phpstan/issues/10122), [#​10187](https://togithub.com/phpstan/phpstan/issues/10187), thanks [@​staabm](https://togithub.com/staabm)! - Do not generalize big array when combined with empty array ([#​3003](https://togithub.com/phpstan/phpstan-src/pull/3003)), [#​10834](https://togithub.com/phpstan/phpstan/issues/10834), thanks [@​RobertMe](https://togithub.com/RobertMe)! - Fix string concatenation with benevolent union type (https://github.com/phpstan/phpstan-src/commit/4a4c739f9ff85b6c73659c21f8f3b8b7af8c82c9), [#​10863](https://togithub.com/phpstan/phpstan/issues/10863) - Treat `get_defined_vars()` as using constructor arguments ([#​3012](https://togithub.com/phpstan/phpstan-src/pull/3012)), [#​10865](https://togithub.com/phpstan/phpstan/issues/10865), thanks [@​rvanvelzen](https://togithub.com/rvanvelzen)! - Allow undefined variables passed into by-ref parameters only if the type is nullable (https://github.com/phpstan/phpstan-src/commit/7f8f9cce7f3903e505916c7afe04b7912570b5e2, https://github.com/phpstan/phpstan-src/commit/7961f7ae1fe815b0796e4d73717f1b117d4a7163), [#​1916](https://togithub.com/phpstan/phpstan/issues/1916) # Function signature fixes 🤖 - More precise `gc_status()` signature for PHP8.3+ ([#​2996](https://togithub.com/phpstan/phpstan-src/pull/2996)), thanks [@​staabm](https://togithub.com/staabm)! - Add object shape for `mysqli_result::fetch_fields` ([#​3005](https://togithub.com/phpstan/phpstan-src/pull/3005)), thanks [@​schlndh](https://togithub.com/schlndh)! # Internals 🔍 - composer-dependency-analyser: update to 1.5.0 (support functions) ([#​3011](https://togithub.com/phpstan/phpstan-src/pull/3011)), thanks [@​janedbal](https://togithub.com/janedbal)! ### [`v1.10.66`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.66) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.65...1.10.66) # Improvements 🔧 - Detect mismatch between readonly/non-readonly class parent (https://github.com/phpstan/phpstan-src/commit/986cbdfb2fd0c3de71b31ac3f212bd499d2131e1), [#​10789](https://togithub.com/phpstan/phpstan/issues/10789) - TypeInferenceTestCase - fix for performance problem with PHPUnit 11 (https://github.com/phpstan/phpstan-src/commit/da87a6541f97b01e35d309524f05c0d3d0bc0a00), [#​10757](https://togithub.com/phpstan/phpstan/issues/10757) # Bugfixes 🐛 - `array_push` preserves list (https://github.com/phpstan/phpstan-src/commit/5473b6701c1a9dd3ca1eb676b3b2c0dec43f2535) # Function signature fixes 🤖 - Fix `redis::get` signature ([#​2990](https://togithub.com/phpstan/phpstan-src/pull/2990)), thanks [@​VincentLanglet](https://togithub.com/VincentLanglet)! # Internals 🔍 - Prevent unnecessary calls into reflection from JSON extensions ([#​2994](https://togithub.com/phpstan/phpstan-src/pull/2994)), thanks [@​staabm](https://togithub.com/staabm)! ### [`v1.10.65`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.65) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.64...1.10.65) # Improvements 🔧 - Fix slow enum cases union with lots of cases ([#​2985](https://togithub.com/phpstan/phpstan-src/pull/2985)), [#​10772](https://togithub.com/phpstan/phpstan/issues/10772), thanks [@​staabm](https://togithub.com/staabm)! # Bugfixes 🐛 - Update BetterReflection ([#​2988](https://togithub.com/phpstan/phpstan-src/pull/2988)) - Fix ReflectionSourceStubber compatibility before PHP 8.1 (https://github.com/ondrejmirtes/BetterReflection/commit/94ca1336c58332604a74012d20286a240db376ea), [https://github.com/larastan/larastan/pull/1882](https://togithub.com/larastan/larastan/pull/1882) - Fix trait method visibility (https://github.com/ondrejmirtes/BetterReflection/commit/d6153d513eb9111f01740394c61ff72142030089?w=1) # Function signature fixes 🤖 - Add benevolent union return types ([#​2986](https://togithub.com/phpstan/phpstan-src/pull/2986)), thanks [@​zonuexe](https://togithub.com/zonuexe)! # Internals 🔍 - Add more tests for issue [#​10622](https://togithub.com/phpstan/phpstan/issues/10622) ([#​2961](https://togithub.com/phpstan/phpstan-src/pull/2961)), thanks [@​mvorisek](https://togithub.com/mvorisek)! - Remove unnecessary method calls in ClassReflection ([#​2984](https://togithub.com/phpstan/phpstan-src/pull/2984)), thanks [@​staabm](https://togithub.com/staabm)! - Use `TrinaryLogic::describe()` in test (https://github.com/phpstan/phpstan-src/commit/222a66cdbf67f2ae367b251ed56acda53a3d8286) ### [`v1.10.64`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.64) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.63...1.10.64) # Bleeding edge 🔪 - Fail build when project config uses custom extensions outside of analysed paths - This will only occur after a run that uses already present and valid result cache *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 🔧 - Introduce `ForbiddenClassNameExtension` for append additional forbidden class prefixes ([#​2979](https://togithub.com/phpstan/phpstan-src/pull/2979)), thanks [@​kamil-zacek](https://togithub.com/kamil-zacek)! - Add `AlwaysUsedMethodExtension` ([#​2927](https://togithub.com/phpstan/phpstan-src/pull/2927)), thanks [@​axlon](https://togithub.com/axlon)! - Warn about possibly stale result cache with custom extensions (https://github.com/phpstan/phpstan-src/commit/9338fdfe1611f742c65c61e5035315e1d64c4972) - This is how it looks: https://twitter.com/OndrejMirtes/status/1770024563113390437 # Bugfixes 🐛 - Fix deprecated parameter order ([#​2971](https://togithub.com/phpstan/phpstan-src/pull/2971)), thanks [@​sayuprc](https://togithub.com/sayuprc)! # Function signature fixes 🤖 - Fix `DOMDocument::load` return type ([#​2975](https://togithub.com/phpstan/phpstan-src/pull/2975)), thanks [@​VincentLanglet](https://togithub.com/VincentLanglet)! - Fix `SplObjectStorage::removeAll/Except` ([#​2892](https://togithub.com/phpstan/phpstan-src/pull/2892)), thanks [@​schlndh](https://togithub.com/schlndh)! ### [`v1.10.63`](https://togithub.com/phpstan/phpstan/compare/1.10.62...1.10.63) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.62...1.10.63) ### [`v1.10.62`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.62) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.61...1.10.62) # Improvements 🔧 - Too wide return type - report for conditional return types (https://github.com/phpstan/phpstan-src/commit/de1c07ea68c36854b46c43ee575145ad4ae2386a) # Bugfixes 🐛 - Constants deprecation depends on PHP version in comment ([#​2967](https://togithub.com/phpstan/phpstan-src/pull/2967)), [#​10700](https://togithub.com/phpstan/phpstan/issues/10700), thanks [@​staabm](https://togithub.com/staabm)! - Make `@param-out` work even if it is the only conditional type in a function signature (https://github.com/phpstan/phpstan-src/commit/787c1e2b46a40ccac9bb254fd45204a310f6ff2f) - ParameterOutAssignedTypeRule - fix for conditional types (https://github.com/phpstan/phpstan-src/commit/19497ba0317be7e37f2c969118c93ce3be1e6fd2) - ParameterOutExecutionEndTypeRule - fix for conditional types (https://github.com/phpstan/phpstan-src/commit/27c73f7f67ba74688d4ed0b3b0f5c0c3a9c60012) - Too wide `@param-out` - fix for conditional types (https://github.com/phpstan/phpstan-src/commit/5a4789339e5768628bf9bb2abdf38eff135553cd) ### [`v1.10.61`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.61) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.60...1.10.61) # Improvements 🔧 - Update BetterReflection to 6.25.0 - Implement PHP Version dependent deprecations for constants ([https://github.com/Roave/BetterReflection/pull/1396](https://togithub.com/Roave/BetterReflection/pull/1396)), thanks [@​staabm](https://togithub.com/staabm)! - Support for `final` modifier in traits ([https://github.com/Roave/BetterReflection/pull/1383](https://togithub.com/Roave/BetterReflection/pull/1383)), thanks [@​kukulich](https://togithub.com/kukulich)! - Support for conditional types in `@param-out` (https://github.com/phpstan/phpstan-src/commit/effad95da555c2b6c7b305178a221e84c831df61), [#​10699](https://togithub.com/phpstan/phpstan/issues/10699) - Check conditional types in `@param-out` (https://github.com/phpstan/phpstan-src/commit/67f9420cba9fa45501cdca87770d50c5c22bd508) # Bugfixes 🐛 - Too wide `@param-out` type - consider all execution ends at once (https://github.com/phpstan/phpstan-src/commit/d1bcf786eedbce9fee74f43f080678fa7788e4e3), [#​10687](https://togithub.com/phpstan/phpstan/issues/10687), [#​10684](https://togithub.com/phpstan/phpstan/issues/10684) # Internals 🔍 - MethodReturnStatementsNode - use ExtendedMethodReflection (https://github.com/phpstan/phpstan-src/commit/3cc1a545641b172b2cb1e89030cde9baa6b0c527) ### [`v1.10.60`](https://togithub.com/phpstan/phpstan/releases/tag/1.10.60) [Compare Source](https://togithub.com/phpstan/phpstan/compare/1.10.59...1.10.60) [**Learn more about this release**](https://phpstan.org/blog/enhancements-in-handling-parameters-passed-by-reference) in an article on phpstan.org! # Major new features 🚀 - Generic `@method` tags: `@method T doFoo(T $p)`, [#​6371](https://togithub.com/phpstan/phpstan/issues/6371) - [Learn more](https://twitter.com/OndrejMirtes/status/1760994823073370509) - [#​2931](https://togithub.com/phpstan/phpstan-src/pull/2931), [#​2935](https://togithub.com/phpstan/phpstan-src/pull/2935), thanks [@​mad-briller](https://togithub.com/mad-briller)! - Generic callable types: `callable(T): T`, [#​8964](https://togithub.com/phpstan/phpstan/issues/8964) - [#​2938](https://togithub.com/phpstan/phpstan-src/pull/2938), [#​2945](https://togithub.com/phpstan/phpstan-src/pull/2945), [#​2946](https://togithub.com/phpstan/phpstan-src/pull/2946), thanks [@​mad-briller](https://togithub.com/mad-briller)! - Error on references of prefixed internal class names from PHAR files ([#​2932](https://togithub.com/phpstan/phpstan-src/pull/2932)), thanks [@​staabm](https://togithub.com/staabm)! # Bleeding edge 🔪 - **Enhancements in Handling Parameters Passed by Reference** - [Learn more on phpstan.org](https://phpstan.org/blog/enhancements-in-handling-parameters-passed-by-reference) - [#​2941](https://togithub.com/phpstan/phpstan-src/pull/2941), thanks [@​ljmaskey](https://togithub.com/ljmaskey)! - Add option `reportAnyTypeWideningInVarTag` ([#​2840](https://togithub.com/phpstan/phpstan-src/pull/2840)), thanks [@​janedbal](https://togithub.com/janedbal)! *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 🔧 - Add support for constructor assertions ([#​2950](https://togithub.com/phpstan/phpstan-src/pull/2950)), [#​10645](https://togithub.com/phpstan/phpstan/issues/10645), thanks [@​axlon](https://togithub.com/axlon)! - Report uses of deprecated constants ([#​2953](https://togithub.com/phpstan/phpstan-src/pull/2953)), thanks [@​staabm](https://togithub.com/staabm)! # Bugfixes 🐛 - Fix how union of callables is understood ([#​2902](https://togithub.com/phpstan/phpstan-src/pull/2902)), [#​10442](https://togithub.com/phpstan/phpstan/issues/10442), thanks [@​mad-briller](https://togithub.com/mad-briller)! - Fix for inferring closure parameter type from callable union (https://github.com/phpstan/phpstan-src/commit/c10476d268bedc5e7bc66b44d160a453edb1cacb) - ArrayType - string offset might exist as integer offset ([#​2928](https://togithub.com/phpstan/phpstan-src/pull/2928)), [#​10610](https://togithub.com/phpstan/phpstan/issues/10610), thanks [@​michalbundyra](https://togithub.com/michalbundyra)! - Truncate description of huge UnionType (https://github.com/phpstan/phpstan-src/commit/039a3dc135bf9f23971437ebd4718291a1404d2d), [#​10614](https://togithub.com/phpstan/phpstan/issues/10614) - fix type of `$a?->b::c()` and `$a?->b::$c` ([#​2933](https://togithub.com/phpstan/phpstan-src/pull/2933)), thanks [@​schlndh](https://togithub.com/schlndh)! - fix `fn() => __FUNCTION__` and `__METHOD__` ([#​2934](https://togithub.com/phpstan/phpstan-src/pull/2934)), thanks [@​schlndh](https://togithub.com/schlndh)! - Some sort functions do not preserve a list (https://github.com/phpstan/phpstan-src/commit/034f7313064b207883a13f1e25a76975560215b9, https://github.com/phpstan/phpstan-src/commit/0977a7b0259cbe4055c6fb0200708b2ec137d770), [#​10627](https://togithub.com/phpstan/phpstan/issues/10627) - ArgumentsNormalizer - keep named arguments for unknown parameters (https://github.com/phpstan/phpstan-src/commit/ad34452cb12cdebd19c80a3f34ef2819c2e37bbb), [#​10628](https://togithub.com/phpstan/phpstan/issues/10628) - Check `T of mixed&Foo` and `T of mixed|Foo` ([#​2940](https://togithub.com/phpstan/phpstan-src/pull/2940)), thanks [@​schlndh](https://togithub.com/schlndh)! - Use narrowed conditional type if/else types for subtype checks ([#​2948](https://togithub.com/phpstan/phpstan-src/pull/2948)), [#​10622](https://togithub.com/phpstan/phpstan/issues/10622), thanks [@​rvanvelzen](https://togithub.com/rvanvelzen)! - Fix `isSuperTypeOf` of callable/Closure when parameter count differ ([#​2949](https://togithub.com/phpstan/phpstan-src/pull/2949)), [#​10594](https://togithub.com/phpstan/phpstan/issues/10594), thanks [@​takaram](https://togithub.com/takaram)! # Function signature fixes 🤖 - Fix `ReflectionFunctionAbstract::getExtension` return type (https://github.com/phpstan/phpstan-src/commit/2ece1f82b0e95541908f052d74a1cb29f2a4b4b7) - Correct return type of `date_sun_info()` function ([#​2947](https://togithub.com/phpstan/phpstan-src/pull/2947)), thanks [@​zonuexe](https://togithub.com/zonuexe)! - Fix return values of `mysqli get_warnings` ([#​2929](https://togithub.com/phpstan/phpstan-src/pull/2929)), thanks [@​janedbal](https://togithub.com/janedbal)! # Internals 🔍 - Replace composer-require-checker with composer-dependency-analyser ([#​2875](https://togithub.com/phpstan/phpstan-src/pull/2875)), thanks [@​janedbal](https://togithub.com/janedbal)! - Use `Type::isNull()` in `Nullsafe(MethodCall|PropertyFetch)Rule` ([#​2942](https://togithub.com/phpstan/phpstan-src/pull/2942)), thanks [@​takaram](https://togithub.com/takaram)!
symfony/console (symfony/console) ### [`v7.0.7`](https://togithub.com/symfony/console/compare/v7.0.6...v7.0.7) [Compare Source](https://togithub.com/symfony/console/compare/v7.0.6...v7.0.7) ### [`v7.0.6`](https://togithub.com/symfony/console/releases/tag/v7.0.6) [Compare Source](https://togithub.com/symfony/console/compare/v7.0.4...v7.0.6) **Changelog** (https://github.com/symfony/console/compare/v7.0.5...v7.0.6) - bug [symfony/symfony#54435](https://togithub.com/symfony/symfony/issues/54435) \[Console] respect multi-byte characters when rendering vertical-style tables ([@​xabbuh](https://togithub.com/xabbuh)) - bug [symfony/symfony#54419](https://togithub.com/symfony/symfony/issues/54419) Fix TypeError on ProgressBar ([@​Fan2Shrek](https://togithub.com/Fan2Shrek))
symfony/finder (symfony/finder) ### [`v7.0.7`](https://togithub.com/symfony/finder/releases/tag/v7.0.7) [Compare Source](https://togithub.com/symfony/finder/compare/v7.0.0...v7.0.7) **Changelog** (https://github.com/symfony/finder/compare/v7.0.6...v7.0.7) - bug [symfony/symfony#54691](https://togithub.com/symfony/symfony/issues/54691) \[Finder] Also consider .git inside the basedir of in() directory ([@​nickvergessen](https://togithub.com/nickvergessen))

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Mend Renovate. View repository job log here.