GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(deps): update phpstan packages (major) by renovate[bot] · Pull Request #19 · brainbits/database-command

Conversation

@renovate

@renovate renovate Bot commented Nov 11, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
brainbits/phpstan-rules ^3.0 -> ^4.0 age confidence
jangregor/phpstan-prophecy ^1.0 -> ^2.0 age confidence
phpstan/phpstan ^1.0 -> ^2.0 age confidence
phpstan/phpstan-phpunit ^1.3 -> ^2.0 age confidence

Release Notes

brainbits/phpstan-rules (brainbits/phpstan-rules)

v4.0.0

Compare Source

Features
  • Add support for phpstan 2.0, drop support for older versions. (864df93)
BREAKING CHANGES
  • phpstan 1.x is not longer supported
Jan0707/phpstan-prophecy (jangregor/phpstan-prophecy)

v2.2.0: (2025-05-22)

Compare Source

What's Changed

  • Allow PHPUnit 12 🎉 by @​Jean85 in https://github.com/Jan0707/phpstan-prophecy/pull/364
  • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.42.3 to 6.43.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/377
  • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.43.0 to 6.44.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/378
  • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.44.0 to 6.44.1 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/379
  • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.44.1 to 6.45.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/380
  • composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.45.0 to 6.46.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/382
  • composer(deps-dev): Bump ergebnis/composer-normalize from 2.45.0 to 2.46.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/383
  • github-actions(deps): Bump shivammathur/setup-php from 2.32.0 to 2.33.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/384
  • composer(deps-dev): Bump ergebnis/composer-normalize from 2.46.0 to 2.47.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/385
  • Revert "Workaround to include phpspec/prophecy-phpunit#67" by @​Jean85 in https://github.com/Jan0707/phpstan-prophecy/pull/386

Full Changelog: Jan0707/phpstan-prophecy@2.1.1...2.2.0

v2.1.1: (2025-02-13)

Compare Source

What's Changed

  • Set correct requires phpstan version to 2-1-5 by @​alexander-schranz in https://github.com/Jan0707/phpstan-prophecy/pull/376 (Thx @​ondrejmirtes)

Recommend update phpstan and all its extension via:

composer update "*phpstan*"

Full Changelog: Jan0707/phpstan-prophecy@2.1.0...2.1.1

v2.1.0: (2025-02-13)

Compare Source

What's Changed

  • github-actions(deps): Bump shivammathur/setup-php from 2.31.1 to 2.32.0 by @​dependabot in https://github.com/Jan0707/phpstan-prophecy/pull/358
  • Update composer normalize by @​alexander-schranz in https://github.com/Jan0707/phpstan-prophecy/pull/372
  • Update php cs fixer to latest version by @​alexander-schranz in https://github.com/Jan0707/phpstan-prophecy/pull/373
  • Add more tests for willExtend and willImplement handling by @​alexander-schranz in https://github.com/Jan0707/phpstan-prophecy/pull/374
  • Remove not longer required extension and fix handling of willImplement and willExtend by @​ondrejmirtes in https://github.com/Jan0707/phpstan-prophecy/pull/369 (Thx also to @​stof)
  • Fix code style issues of https://github.com/Jan0707/phpstan-prophecy/pull/374 by @​alexander-schranz in https://github.com/Jan0707/phpstan-prophecy/pull/375

Recommend update phpstan and all its extension via:

composer update "*phpstan*"

PHPStan 2.1.5 required to work correctly.

Full Changelog: Jan0707/phpstan-prophecy@2.0.0...2.1.0

v2.0.0

Compare Source

What's Changed

  • Add support for PHPStan 2 🎉 by @​sasezaki, @​Jean85, @​stof in https://github.com/Jan0707/phpstan-prophecy/pull/348
  • Increase CI matrix to test against more recent PHPUnit & PHP versions by @​Jean85 in https://github.com/Jan0707/phpstan-prophecy/pull/351
  • Update dev docker image for easier contributions by @​alexander-schranz in https://github.com/Jan0707/phpstan-prophecy/pull/352
  • minimize README code example by @​sasezaki in https://github.com/Jan0707/phpstan-prophecy/pull/353

New Contributors

  • @​sasezaki made their first contribution in https://github.com/Jan0707/phpstan-prophecy/pull/348

Full Changelog: Jan0707/phpstan-prophecy@1.0.2...2.0.0

phpstan/phpstan (phpstan/phpstan)

v2.1.21

Compare Source

v2.1.20

Compare Source

Bugfixes 🐛

  • Fix "will always evaluate to true" function call with named arguments (phpstan/phpstan-src@1f150cc), #​13291
  • Fix Invalid "UTF-8" string error when using TableErrorFormatter (#​4163), #​13292, thanks @​schlndh!

v2.1.19

Compare Source

Improvements 🔧

  • Remove manual wrapping for error table (#​4035), thanks @​schlndh!
  • Improve array_search inference (#​4014), thanks @​VincentLanglet!
  • Improve str_split() return type (#​3999), thanks @​VincentLanglet!
  • Detect more duplicate array keys (#​4116), thanks @​VincentLanglet!
  • Add support for multiple identifiers in ignoreErrors configuration (#​4080), thanks @​janedbal!
  • Fix missing detection of dead code in expressions (#​4090), #​13232, #​11909, thanks @​staabm!

Bugfixes 🐛

  • Fix IntersectionType::isIterableOnce() (#​4106), #​13248, thanks @​VincentLanglet!
  • Fix false positive unreachable (#​4112), #​7531, thanks @​VincentLanglet!
  • Improve array filter return type on PHP 8 (#​4123), #​12689, thanks @​VincentLanglet!
  • Fix analysis on array_map with named arguments (#​3763), #​12317, thanks @​takaram!
  • Fix ObjectType::getOffsetValueType() (#​4126), #​12125, #​9575, #​9456, #​13144, thanks @​VincentLanglet!
  • Fix for respecting rule levels for property.nameNotString (#​4117), #​13271
  • Improve trim on numeric string (#​4130), #​10860, thanks @​VincentLanglet!
  • Fix intersection with substracted (#​4132), thanks @​VincentLanglet!
  • Understand at least one argument for non empty array unpacked (#​4134), #​10020, #​8506, thanks @​VincentLanglet!
  • Handle empty array case via ConstantArrayType::spliceArray() (#​4140), #​13279, thanks @​herndlm!
  • Fix lowercase string usage in template (#​4122), #​12739, thanks @​VincentLanglet!
  • Fix "Unsafe use of new static when trait enforces constructor via abstract method" (#​4114), #​9654, thanks @​VincentLanglet!
  • Nothing is lower than null (#​4131), #​10719, #​9141, thanks @​VincentLanglet!
  • Hotfix - allow people to override exceptionTypeResolver in neon (phpstan/phpstan-src@e7febc3)

Function signature fixes 🤖

  • Improve sys_getloadavg return type (#​4107), #​13198, thanks @​VincentLanglet!
  • Fix PDO quote return type (#​4113), #​10512, thanks @​VincentLanglet!
  • Fix pg_lo_import definition (#​4120), thanks @​VincentLanglet!
  • Update eio function return type (#​4124), thanks @​VincentLanglet!
  • Update stream_filter_* signatures (#​4125), #​12380, thanks @​VincentLanglet!
  • Update DomNode return type (#​4137), thanks @​VincentLanglet!
  • Update Spl methods with side effects (#​4129), #​10884, #​9180, thanks @​VincentLanglet!
  • Fix odbc definitions (#​4119), thanks @​VincentLanglet!

Internals 🔍

  • Added regression test (#​4105), #​8372, thanks @​staabm!
  • Added regression test (#​4109), #​13043, thanks @​VincentLanglet!
  • Add regression tests for strict rules issues (#​4110), https://github.com/phpstan/phpstan-strict-rules/issues/147, https://github.com/phpstan/phpstan-strict-rules/issues/143, thanks @​VincentLanglet!
  • Fix function name typo (#​4118), thanks @​VincentLanglet!
  • Fix typo in error message in #[RequiresPhp] attribute rule (#​4127), thanks @​takaram!
  • Update bashunit:0.22.0 (#​4133), thanks @​Chemaclass!
  • Add regression test (#​4135), #​9706, thanks @​VincentLanglet!
  • Add regression test (#​4136), #​9401, thanks @​VincentLanglet!
  • Introduce dumpNativeType (#​4108), thanks @​VincentLanglet!

v2.1.18

Compare Source

Bleeding edge 🔪

  • Name string expr check in ClassConstantRule (#​3910), thanks @​zonuexe!
  • Name string expr check in AccessPropertiesCheck (#​4094), thanks @​zonuexe!

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

Improvements 🔧

  • Add @phpstan-sealed support (#​4095), thanks @​VincentLanglet!
  • This release includes improvements and bugfixes from PHPStan 1.12.28
  • Validate registered services tags against implemented interface (phpstan/phpstan-src@f375a81)
  • Only change exit code with --fail-without-result-cache when the error formatter returns 0 (phpstan/phpstan-src@df9fa6e)
  • Normalize arguments before calling into TypeSpecifyingExtensions (#​4034), #​13088, thanks @​staabm!
  • Use count() return type in ObjectType::getArraySize() (#​4072, #​4078), thanks @​vojtech-dobes!
  • Add method to get ObjectType from ClassReflection and EnumCaseReflection (#​4099), thanks @​calebdw!
  • Playground & Issue bot: PhpdocCommentRule (#​4074), thanks @​staabm!
  • Describe array shape key in quotes unless valid identifier (#​4071), thanks @​vojtech-dobes!
  • Improve TrimDynamicReturnType for constant strings (#​4028), thanks @​VincentLanglet!
  • Introduce ArrayPadDynamicReturnTypeExtension (#​4017), #​12305, thanks @​VincentLanglet!
  • Introduce PDO::connect dynamic method return type extension (#​4015), #​12359, thanks @​VincentLanglet!
  • Add PhpVersion::__construct to BC promise (#​4022), #​8582, thanks @​VincentLanglet!
  • Support switch on ::class (#​4011), #​13069, thanks @​VincentLanglet!
  • More precise array_keys return type (#​3590), #​11928, thanks @​staabm!

Bugfixes 🐛

  • Fix ClosureType::equals() for pure/impure closures (phpstan/phpstan-src@02066c7), #​13067
  • Fix for benevolent union (#​4039), #​13098, thanks @​VincentLanglet!
  • Fix resolving generics from phpstorm-stubs (phpstan/phpstan-src@c0f2e9e), #​13171
  • Correctly retrieve hasSideEffects metadata for inherited methods (#​4079), #​13201, thanks @​zonuexe!
  • ObjectType: fix hasConstant behaviour (#​4089), thanks @​janedbal!
  • Explicitly use StreamSelectLoop for PHPStan Pro download (#​4077), thanks @​calebdw!
  • stream_get_contents() does not return FALSE unless an invalid position is provided (#​4092), #​3396, thanks @​staabm!
  • Revert "non-falsy-string cannot be converted to 0" (#​3997), thanks @​VincentLanglet!
  • Improve return type of array map by invoking dynamic function return type extensions for the callback (#​4068), #​11180, #​3156, thanks @​VincentLanglet!
  • Avoid false positive in_array() always true (#​4073), #​13151, #​8818, #​12755, #​12412, thanks @​VincentLanglet!
  • Fix always-true detection in in_array with union type haystack (#​3888), #​12755, thanks @​sayuprc!
  • Fix NAN inferences (#​4040), #​13097, thanks @​VincentLanglet!
  • Fix MixedType->equals(ErrorType) (#​3934), thanks @​staabm!
  • Handle class without namespace for internal rule (#​3998), #​13041, thanks @​VincentLanglet!
  • Resolve substr based on configured PHP version instead of runtime PHP version (#​4061), #​13129, thanks @​VincentLanglet!
  • Keep list on unset() with nested dim fetch (#​3964), #​12927, #​12330, #​11171, #​8282, #​12754, thanks @​staabm!

Function signature fixes 🤖

  • These DateTimeInterface methods are pure (phpstan/phpstan-src@7534ee1)
  • More precise return type for posix_getpwnam() (#​4091), #​12254, thanks @​zonuexe!
  • Fix SimpleXMLElement::xpath return type (#​4096), thanks @​VincentLanglet!
  • Fix fwrite (#​4087), thanks @​VincentLanglet!
  • Update locale_get_display_x() return types (#​4085), thanks @​cfahner!
  • Fix DOMElement::$attributes stub (#​4029), #​13076, thanks @​VincentLanglet!
  • Improve mb detect encoding signature (#​4020), #​8922, thanks @​VincentLanglet!

Internals 🔍

  • Moved the list of relative paths in parameters to parametersSchema.neon (phpstan/phpstan-src@72c2a8d)
    • This now allows extensions to declare which of their custom parameters should be treated as relative path to expand
  • Scaffolding for auto-fixable rules
    • This feature will be fully released in PHPStan 2.2.0
  • phpstan-src embraces attributes!
    • This is enabled thanks to olvlvl/composer-attribute-collector and AutowiredAttributeServicesExtension
    • PHPStan still supports PHP 7.4 because this package bakes compiled list of classes and parameters with attributes to a plain PHP file vendor/attributes.php.
    • Slimmer config files
    • Services are now registered with the help of these attributes:
      • AutowiredService
      • AutowiredParameter
      • NonAutowiredService
      • GenerateFactory
    • Rules and collectors for specific levels are registered with:
      • RegisteredRule
      • RegisteredCollector
  • phpstan-src now includes more custom opinionated rules specific to development of PHPStan itself
    • Attributes must have named arguments (phpstan/phpstan-src@676ad27)
    • Use named arguments instead of passing default parameter values phpstan/phpstan-src@35fbc87
      • As a limitation of simple-downgrader, this does not apply to MethodCall. Only to New_, StaticCall, and FuncCall.
    • Add #[Override] for methods overriding 3rd party (phpstan/phpstan-src@98ed732)
    • SkipTestsWithRequiresPhpAttributeRule (https://github.com/phpstan/phpstan-src/pull/4056/commits/6851343e570bc1e79580972243deed80b3bc5e39)
    • Simplify property memoization for Flyweight pattern by replacing it with ??= (#​4084), thanks @​zonuexe!
    • Simplify by replacing chained $var === const with in_array() (#​4098), thanks @​zonuexe!
  • DI Container - throw unprefixed exception (phpstan/phpstan-src@2443663)
  • Require Box with Composer (#​2955)
  • Use 7.4 for PHP-Scoper PHP version (#​2955), thanks @​ondrejmirtes!
  • Update to PHPUnit 10 ((#​4046))
  • Update to PHPUnit 11 (#​4057)
  • Upgrade bashunit:0.20 (#​4048), thanks @​Chemaclass!
  • Add assertSuperType testing utility (#​4066), thanks @​vojtech-dobes!
  • Use str_starts_with() instead of strpos() (#​4083), thanks @​zonuexe!
  • Avoid duplicating the same strpos() function call (#​4083), thanks @​zonuexe!
  • Add Type::spliceArray(), improve splice_array() array type narrowing (#​3952), thanks @​herndlm!

v2.1.17

Compare Source

Major new features 🚀

  • Introducing Editor Mode (phpstan/phpstan-src@74b909a)
    • Learn more: https://phpstan.org/user-guide/editor-mode

Bleeding edge 🔪

  • Report new static() in static method of abstract class - level 0 (phpstan/phpstan-src@a5f7c06)

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

Improvements 🔧

  • This release includes improvements and bugfixes from PHPStan 1.12.27

Bugfixes 🐛

  • Fix array_column() with explicit null $index_key (#​3970), #​12945, thanks @​herndlm!
  • AlwaysRememberedExpr - use getNativeExprType (phpstan/phpstan-src@222676e)
  • Invalidate result cache properly when property hook changes (phpstan/phpstan-src@dff492e, phpstan/phpstan-src@268d7c6)
  • Result cache - react to property having abstract/final/asymmetric visibility changed (phpstan/phpstan-src@0ad2a6a)
  • Result cache - react to property being virtual changing (phpstan/phpstan-src@e33a560)

Function signature fixes 🤖

  • Update libxml_get_errors() (#​3973), thanks @​jack-worman!

Internals 🔍

  • Call ProcessPromise::cancel() from deferred canceller (phpstan/phpstan-src@df4c1f3)
  • Solve some cases of dead code (phpstan/phpstan-src@e1e8302)
  • Remove dead code (phpstan/phpstan-src@d88e2fe)
  • Remove unused method from interface (phpstan/phpstan-src@2ac0a17)
  • Remove unused method from PathNotFoundException (phpstan/phpstan-src@aaa1424)
  • Remove getPhpDocReturnTypeWithUnresolvableTemplateTypes from ResolvedFunctionVariantWithCallable (phpstan/phpstan-src@e3c76ad)
  • Remove more dead code (phpstan/phpstan-src@2f66ec6)
  • Install & configure shipmonk/dead-code-detector (#​3996), thanks @​janedbal!
  • Drop unused SymfonyStyle::getSymfonyStyle (#​3996), thanks @​janedbal!
  • Drop unused NeonAdapter::dump (#​3996), thanks @​janedbal!
  • Drop unused FileMonitor::getTotalFilesCount (#​3996), thanks @​janedbal!
  • Drop unused SetterReflectionProviderProvider (#​3996), thanks @​janedbal!
  • Drop dead dataProvider in ExistingClassesInTypehintsRuleTest (#​3996), thanks @​janedbal!
  • Drop unused ResolvedPropertyReflection::getDeclaringTrait (#​3996), thanks @​janedbal!
  • Drop unused ProcessPromise::getName (#​3996), thanks @​janedbal!
  • Drop unused PhpDocBlock::isExplicit (#​3996), thanks @​janedbal!
  • Drop dead TemplateTypeTrait::shouldGeneralizeInferredType (overwritten in all children) (#​3996), thanks @​janedbal!
  • SimultaneousTypeTraverser to be covered by BC promise (#​3996), thanks @​janedbal!

v2.1.16

Compare Source

Improvements 🔧

  • Support for @final PHPDoc tag above properties (#​3990), #​12999, thanks @​lpd-au!
  • Faster ClassNameHelper (#​3994), thanks @​staabm!

Bugfixes 🐛

  • DuplicateKeysInLiteralArraysRule: Fixed union type handling (#​3993), #​13013, #​13022, thanks @​staabm!
  • Improve preg_split() function return type (#​3757), thanks @​malsuke!

Function signature fixes 🤖

  • Update SNMP class signatures (#​3927), thanks @​miken32!

v2.1.15

Compare Source

Improvements 🔧

  • This release includes improvements and bugfixes from PHPStan 1.12.26
  • TableErrorFormatter: improve formatting of error tips (#​3821), thanks @​FeBe95!
  • InstantiationRule - call RestrictedMethodUsageExtension for constructor (phpstan/phpstan-src@8edfa9f)
  • Call RestrictedMethodUsageExtension for __toString methods in (string) cast (phpstan/phpstan-src@ce257d9)

Bugfixes 🐛

  • Fix GetDebugTypeFunctionReturnTypeExtension - should use TypeCombinator instead of new UnionType (phpstan/phpstan-src@1044f11), #​12512
  • Remember value of arguments passed to {min,max}() (#​3928), #​12731, thanks @​cs278!
  • Revert "Useful PhpMethodReflection native type refactoring from #​3966" (#​3979), thanks @​samsonasik!
  • Respect asserts and throws on pure functions that return void (#​3719), #​12224, thanks @​jack-worman!
  • Disable purity check for non-final methods (#​3913), #​12382, thanks @​VincentLanglet!
  • Fix IterableType::equals() with TemplateIterableType (#​3991), thanks @​staabm!
  • Restricted usage extensions - do not report false positives for Symfony polyfills (phpstan/phpstan-src@4a907f1), #​12951

Function signature fixes 🤖

  • Add stub for DOMNode::hasAttributes (#​3800), thanks @​Niklan!
  • Update PhpStorm stubs (#​3989), thanks @​phpstan-bot!
  • Remove MongoDB extension from function map (#​3891), thanks @​alcaeus!

Internals 🔍

  • Replace error-prone instanceof *Type in Rules classes (#​3858), thanks @​zonuexe!
  • Extract ArrayColumnHelper from ArrayColumnFunctionReturnTypeExtension (#​3785), thanks @​staabm!

v2.1.14

Compare Source

Bugfixes 🐛

  • More precise property types after assignment when strict_types=0 (#​3965), #​12946, #​12940, #​12950, #​12947, thanks @​staabm!
  • Fix array_slice() edge cases (#​3959), thanks @​herndlm!
  • non-falsy-string cannot be converted to 0 (#​3971), thanks @​staabm!
  • Fix crash on dynamic numeric-string symbols (#​3975), #​12949, thanks @​staabm!

Internals 🔍

  • Remove useless assign $parentNode = $parentNode (#​3938), thanks @​samsonasik!
  • TypehintHelper: remove unneeded default param value (#​3968), thanks @​staabm!
  • Useful PhpMethodReflection native type refactoring from #​3966 (phpstan/phpstan-src@3854cbc)

v2.1.13

Compare Source

Major new features 🚀

  • Restricted Usage Extensions
    • Learn more: https://phpstan.org/blog/restricted-usage-extensions-you-dont-always-need-custom-rule
    • Docs: https://phpstan.org/developing-extensions/restricted-usage-extensions

Bleeding edge 🔪

  • Report @internal symbols usage from outside their top namespace, #​1178

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

Improvements 🔧

  • Improve return type of array_splice() (#​3947), thanks @​herndlm!
  • Handle preserve_keys in array_slice() for normal arrays (#​3946), #​12880, thanks @​herndlm!
  • Improve ConstantArrayType::sliceArray() with non constant integer args (#​3949), thanks @​herndlm!
  • TableErrorFormatter: visually differentiate phpstan assertion errors from rule errors (#​3951), thanks @​staabm!

Bugfixes 🐛

  • Consider comparison as strict when type is the same (#​3942), #​12884, thanks @​VincentLanglet!
  • Fix wrong property type after assigning iterable type (phpstan/phpstan-src@7c1ee34), #​12891
  • Scope::rememberConstructorScope() should not remember the function scope (#​3944), https://github.com/spaze/phpstan-disallowed-calls/issues/323, thanks @​staabm!
  • Fix imprecise property native types after assignment (#​3945), #​12902, thanks @​staabm!
  • Fix invalidating static property access after impure call (#​3950), #​11019, #​3747, #​8523, #​4864, #​4443, thanks @​staabm!
  • More precise string functions return type with replacement array (#​3963), #​12928, thanks @​staabm!
  • Fix session_set_cookie_params call with named arguments (phpstan/phpstan-src@72e37dc), #​12934

Internals 🔍

  • MutatingScope: remove unnecessary callback functions (#​3916), thanks @​staabm!
  • Fix occasional failure in ParallelAnalyserIntegrationTest (phpstan/phpstan-src@4f5a63a)
  • MethodReflection - fix isInternal vs. isBuiltin (phpstan/phpstan-src@3024c02)
  • Simplify degradation to general array in ConstantArrayType::shuffle() (#​3948), thanks @​herndlm!
  • ExtendedPropertyReflection::getName() (phpstan/phpstan-src@ff198c9)
  • Micro optimize LazyInternalScopeFactory (#​3962), thanks @​staabm!

v2.1.12

Compare Source

Improvements 🔧

  • Remember narrowed types from the constructor when analysing other methods (#​3930), #​12860, #​10048, #​11828, #​9075, #​6063, #​12723, thanks @​staabm!
  • DeprecationExtensions: allow custom deprecation-marking logic (#​3932), thanks @​janedbal!
    • Learn more: https://phpstan.org/developing-extensions/custom-deprecations
  • TypeInferenceTestCase - show analysed symbols that do not exist next to failure (misconfigured autoloading) (phpstan/phpstan-src@fdd5ad9, phpstan/phpstan-src@a2834bc)
  • RuleTestCase - show analysed symbols that do not exist next to failure (misconfigured autoloading) (phpstan/phpstan-src@c5cf14b, phpstan/phpstan-src@a2834bc)
  • Allow toggling discoveringSymbols tip (#​3929), https://github.com/phpstan/phpstan/discussions/12859, thanks @​herndlm!
  • Faster processing of array comparisons with constant offsets (#​3933), #​12800, thanks @​staabm!
  • ClassReflection: narrow getNativeReflection after isEnum is true (#​3925), thanks @​janedbal!
  • ResultCacheManager: support dots in parametersNotInvalidatingCache (#​3939), thanks @​janedbal!
  • ResultCacheManager: configurable days causing cache skip (#​3941), thanks @​janedbal!

Bugfixes 🐛

  • This release includes fixes from PHPStan 1.12.24
  • RegexArrayShapeMatcher - enforce list type when no named captures (#​3899), #​12397, #​11602, thanks @​staabm!
  • Fix elapsed time format for result cache restore time (#​3890), thanks @​janedbal!
  • Limit int ranges when narrowing arrays via count() (#​3902), #​12787, thanks @​herndlm!
  • Fixed false positive about undefined property guarded with property_exists (phpstan/phpstan-src@3d52930)
  • Fixed false positive about undefined method guarded with method_exists (phpstan/phpstan-src@ae5562f), #​12793
  • Offset on list definitely exists if there's HasOffsetType with higher number (#​3905), #​12605, thanks @​staabm!
  • Set offset on list keeps list if there's HasOffsetType for all preceeding offsets (#​3909), thanks @​staabm!
  • Fix union/intersect involving enum case (#​3907), #​12163, thanks @​schlndh!
  • Fix lost list type if substituted a element via loop (#​3908), #​12274, thanks @​staabm!
  • Fix signature type for default-null parameters (#​3912), #​7522, #​12282, thanks @​VincentLanglet!
  • ObjectType: fix isEnum (#​3915), [#​128

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.

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


  • If you want to rebase/retry this PR, check this box

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@renovate renovate Bot added composer renovate 🤖 labels Nov 11, 2024
@renovate
renovate Bot force-pushed the renovate/major-phpstan-packages branch from 1e7b8d5 to 546032c Compare November 11, 2024 15:44
@renovate renovate Bot changed the title chore(deps): update phpstan packages to v2 (major) chore(deps): update phpstan packages (major) Nov 11, 2024
@renovate
chore(deps): update phpstan packages
1299891
@renovate
renovate Bot force-pushed the renovate/major-phpstan-packages branch from 546032c to 1299891 Compare November 21, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

composer renovate 🤖

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

0 participants

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.