chore(deps): update dependency phpstan/phpstan to v1.7.15
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.7.14 -> 1.7.15
|
Release Notes
phpstan/phpstan
v1.7.15
🔧
Improvements - Support for relative paths in
editorUrl
for Docker environment (#1414), #7043, thanks @Wirone! - Support positional arguments in
sprintf()
constant format inference (#1437, #1440, #1441), thanks @staabm! - Dynamic return type extension for
sscanf()
andfscanf()
(#1434), thanks @staabm! - Virtual nodes (InClassMethodNode, InFunctionNode, InClosureNode) - pass and provide getters for specific reflection so that
Scope::getFunction()
does not need to be used (https://github.com/phpstan/phpstan-src/commit/f18bd86495fc6811ee04c305ff4b379b10cd07bb)
🔪
Bleeding edge - Check code in custom PHPStan extensions for runtime reflection concepts like
is_a()
orclass_parents()
(https://github.com/phpstan/phpstan-src/commit/c4a662ac6c3ec63f063238880b243b5399c34fcc) - Check code in custom PHPStan extensions for runtime reflection concepts like
new ReflectionMethod()
(https://github.com/phpstan/phpstan-src/commit/536306611cbb5877b6565755cd07b87f9ccfdf08) - ApiInstanceofRule
- Report
instanceof
of classes not covered by backward compatibility promise (https://github.com/phpstan/phpstan-src/commit/ff4d02d62a7a2e2c4d928d48d31d49246dba7139) - Report
instanceof
of classes covered by backward compatibility promise but where the assumption might change (https://github.com/phpstan/phpstan-src/commit/996bc69fa977aa64f601bd82b8a0ae39be0cbeef)
- Report
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
🐛
Bugfixes - Fix return type for arrow function generators (#1422), #7031, thanks @rvanvelzen!
- Improve intersecting constant array with general array (#1429), thanks @rvanvelzen!
- Allow
numeric-string
being returned fornon-empty-string
(#1428), #7265, thanks @staabm! - Specify array type via
in_array
(#1430), #7153, #7275, thanks @rvanvelzen! - Specify
non-empty-array after
afterin_array()
(#1108), #6167, thanks @staabm! - Array after
array_push
/array_unshift
call can still be empty (#1431), #7424, thanks @herndlm! - Fix
TemplateTypeArgumentStrategy::accepts()
(https://github.com/phpstan/phpstan-src/commit/85ab8cfe237b9a90d12f211dd1938a99cc299bba), #7460 - Improve parenthesization for union types (#1433), #7484, thanks @rvanvelzen!
- Result cache is invalidated for files where PHP 8 attributes changed (#1427), #6797, #7413, thanks @olsavmic!
- Fix
TypeCombinator::union()
for intersection of array and template type (#1444), #4117, thanks @rvanvelzen!
🤖
Function signature fixes - Be more specific about the XHProf sampling type (
xhprof_sample_disable()
) (#1436), thanks @johnbillion!
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.