Update PHPStan packages
This MR contains the following updates:
| Package | Type | Update | Change | 
|---|---|---|---|
| phpstan/phpstan | require-dev | patch | 1.10.59->1.10.65 | 
| phpstan/phpstan-symfony | require-dev | patch | 1.3.8->1.3.9 | 
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.65
Improvements 🔧 
Bugfixes 🐛 
- Update BetterReflection (#2988)
- Fix ReflectionSourceStubber compatibility before PHP 8.1 (https://github.com/ondrejmirtes/BetterReflection/commit/94ca1336c58332604a74012d20286a240db376ea), https://github.com/larastan/larastan/pull/1882
- Fix trait method visibility (https://github.com/ondrejmirtes/BetterReflection/commit/d6153d513eb9111f01740394c61ff72142030089?w=1)
 
Function signature fixes 🤖 
Internals 🔍 
- Add more tests for issue #10622 (#2961), thanks @mvorisek!
- Remove unnecessary method calls in ClassReflection (#2984), thanks @staabm!
- Use TrinaryLogic::describe()in test (https://github.com/phpstan/phpstan-src/commit/222a66cdbf67f2ae367b251ed56acda53a3d8286)
v1.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.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 🔧 
- Introduce ForbiddenClassNameExtensionfor append additional forbidden class prefixes (#2979), thanks @kamil-zacek!
- Add  AlwaysUsedMethodExtension(#2927), thanks @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 🐛 
Function signature fixes 🤖 
- Fix DOMDocument::loadreturn type (#2975), thanks @VincentLanglet!
- Fix SplObjectStorage::removeAll/Except(#2892), thanks @schlndh!
v1.10.63
Improvements 🔧 
- Resolve PHPStan issue with deprecated parameter order in PHP 8.1 and 8.3 (#2963), thanks @sayuprc!
- Update nikic/php-parser (https://github.com/phpstan/phpstan-src/commit/7ceeb2195031ca71e71f9f70b2570c8a73201048, https://github.com/phpstan/phpstan-src/commit/063f6a866c52cd054d37c5decbbbbc2743ae5f55)
- Solve duplicates in UnionType description (#2973), thanks @VincentLanglet!
Bugfixes 🐛 
- Revert "Update nette/di" (https://github.com/phpstan/phpstan-src/commit/969ff31ab29cd424aab2b2e32344a1825093bdea), #10727
- Fix password_hash algo constant passing on PHP <7.4 (https://github.com/phpstan/phpstan-src/commit/fc4e5891f786d0db1f509a11516eca58adb1eb67), #9246
- ArrayType - use getIterableKeyType(), it preserves array-key (https://github.com/phpstan/phpstan-src/commit/d5bf23b18f0c7484771c0298a6cd5359345eab94), #9307
Function signature fixes 🤖 
- Add false return type to exec()(#2974), thanks @VincentLanglet!
Internals 🔍 
- Cleanup AnalyserIntegrationTest->runAnalyse()(#2960), thanks @staabm!
- 
ReflectionProvider::hasClass()narrows$classNamearg (#2976), thanks @staabm!
v1.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), #10700, thanks @staabm!
- Make @param-outwork 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
Improvements 🔧 
- Update BetterReflection to 6.25.0
- Implement PHP Version dependent deprecations for constants (https://github.com/Roave/BetterReflection/pull/1396), thanks @staabm!
- Support for finalmodifier in traits (https://github.com/Roave/BetterReflection/pull/1383), thanks @kukulich!
 
- Support for conditional types in @param-out(https://github.com/phpstan/phpstan-src/commit/effad95da555c2b6c7b305178a221e84c831df61), #10699
- Check conditional types in @param-out(https://github.com/phpstan/phpstan-src/commit/67f9420cba9fa45501cdca87770d50c5c22bd508)
Bugfixes 🐛 
- Too wide @param-outtype - consider all execution ends at once (https://github.com/phpstan/phpstan-src/commit/d1bcf786eedbce9fee74f43f080678fa7788e4e3), #10687, #10684
Internals 🔍 
- MethodReturnStatementsNode - use ExtendedMethodReflection (https://github.com/phpstan/phpstan-src/commit/3cc1a545641b172b2cb1e89030cde9baa6b0c527)
v1.10.60
Learn more about this release in an article on phpstan.org!
Major new features 🚀 
- Generic @methodtags:@method T doFoo<T>(T $p), #6371- Learn more
- #2931, #2935, thanks @mad-briller!
 
- Generic callable types: callable<T>(T): T, #8964- #2938, #2945, #2946, thanks @mad-briller!
 
- Error on references of prefixed internal class names from PHAR files (#2932), thanks @staabm!
Bleeding edge 🔪 
- 
Enhancements in Handling Parameters Passed by Reference
- Learn more on phpstan.org
- #2941, thanks @ljmaskey!
 
- Add option reportAnyTypeWideningInVarTag(#2840), thanks @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.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 🔧 
- Add support for constructor assertions (#2950), #10645, thanks @axlon!
- Report uses of deprecated constants (#2953), thanks @staabm!
Bugfixes 🐛 
- Fix how union of callables is understood (#2902), #10442, thanks @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), #10610, thanks @michalbundyra!
- Truncate description of huge UnionType (https://github.com/phpstan/phpstan-src/commit/039a3dc135bf9f23971437ebd4718291a1404d2d), #10614
- fix type of $a?->b::c()and$a?->b::$c(#2933), thanks @schlndh!
- fix fn() => __FUNCTION__and__METHOD__(#2934), thanks @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
- ArgumentsNormalizer - keep named arguments for unknown parameters (https://github.com/phpstan/phpstan-src/commit/ad34452cb12cdebd19c80a3f34ef2819c2e37bbb), #10628
- Check T of mixed&FooandT of mixed|Foo(#2940), thanks @schlndh!
- Use narrowed conditional type if/else types for subtype checks (#2948), #10622, thanks @rvanvelzen!
- Fix isSuperTypeOfof callable/Closure when parameter count differ (#2949), #10594, thanks @takaram!
Function signature fixes 🤖 
- Fix ReflectionFunctionAbstract::getExtensionreturn type (https://github.com/phpstan/phpstan-src/commit/2ece1f82b0e95541908f052d74a1cb29f2a4b4b7)
- Correct return type of date_sun_info()function (#2947), thanks @zonuexe!
- Fix return values of mysqli get_warnings(#2929), thanks @janedbal!
Internals 🔍 
- Replace composer-require-checker with composer-dependency-analyser (#2875), thanks @janedbal!
- Use Type::isNull()inNullsafe(MethodCall|PropertyFetch)Rule(#2942), thanks @takaram!
phpstan/phpstan-symfony (phpstan/phpstan-symfony)
v1.3.9
- 
a32bc86 - Add @param-outfor PropertyAccessor
Configuration
- 
If you want to rebase/retry this MR, check this box 
This MR has been generated by Renovate Bot.