Update dependency phpstan/phpstan to v1.4.6
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.4.3 -> 1.4.6
|
Release Notes
phpstan/phpstan
v1.4.6
🔧
Improvements
🐛
Bugfixes - Fix interaction between template type and union type (#992), #5591, thanks @arnaud-lb!
- Delegate most of
TypeCombinator::remove()
toType::tryRemove()
(#994), #6438, thanks @arnaud-lb! - TemplateType should accept a TemplateType derived from itself (#999), #5844, #5706, thanks @arnaud-lb!
- Fixed intersecting and removal from TemplateUnionType (https://github.com/phpstan/phpstan-src/commit/0d288353ca782ef79e362657c2581abf4246a2f8), #6566
- Fixed type seen by IterableInForeachRule with inline
@var
right aboveforeach
(https://github.com/phpstan/phpstan-src/commit/b6bbbaf6b01cbd43ae2800bbd00fe0ddbcb2e0d9), #6564 - modulo 1 is always zero (#973), thanks @staabm!
- multiply by zero is always zero (#974), thanks @staabm!
- Fixed discovering backed enum without space around
:
(https://github.com/phpstan/phpstan-src/commit/5162bcfea5456eb827035cd249c5ace55057237b), https://github.com/composer/composer/issues/10498
🤖
Function signature fixes - Function
md5()
always returnnon-empty-string
(#987), thanks @janbarasek! - Correct the case for parameters that accept an instance of
Iterator
. (#988), thanks @johnbillion! - Fix the return types of
round()
/ceil()
/floor()
(#729), thanks @johnbillion! - Correct the return type of
SplFileObject::fstat()
(#996), thanks @johnbillion! - Improve the return type of functions that return an indexed array of strings (#997), thanks @johnbillion!
v1.4.5
🔧
Improvements - AnalyseApplication: Do not re-analyse stubs on every run (#730), #5826, thanks @dktapps!
- Add shorthand for
--generate-baseline
(-b
) (#980), thanks @Seldaek! - Support narrowing down
array_filter()
return type via string callable (#938), #6417, thanks @herndlm! - Loop optimization (#757), thanks @ging-dev!
🐛
Bugfixes - Fixed level 9 issues (https://github.com/phpstan/phpstan-src/commit/9f12f0fb4877b28cdad42644d927f579c42db22d), #6423, #6464, #6236, #6418, #6118, #6081, #6053, #6055, #5860, #6230
- Cast PHPDoc array key type with array key casting rules (https://github.com/phpstan/phpstan-src/commit/5d17b847d9f60a0fba21d76d813a612c042fdb1c), #6117
- Support closure bind with class-string (#706), #4949, thanks @mvorisek!
- Fix
NeverType::toBoolean()
(https://github.com/phpstan/phpstan-src/commit/fe3a3419d5d8d2b276456971afc3e1804ab1c759), #6258 - Fix
DatePeriod
constructor extension in subclasses (https://github.com/phpstan/phpstan-src/commit/0c82b3a2675f636db920a0a3e077a45a87200766), #6500 - Forget remembered specific type when entering arrow function with same-named parameter (https://github.com/phpstan/phpstan-src/commit/af38f03b41d002bd01afa989921acd9f1114fc0e), #6473
- Fix segfault (https://github.com/phpstan/phpstan-src/commit/d101764ff94a5838930a11fdac7ca9156ded7dc4), #6501
🤖
Function signature fixes - More precise
array_chunk
signature (#709), thanks @staabm! - Narrow the type for the
preg_replace_callback()
callable. (#758), thanks @johnbillion! - Update return types for hash functions (#822), thanks @jlherren!
- Fix type for
array_splice()
argument$replacement
(#901), #6288, thanks @spawnia! -
stream_bucket_new
returns an object (#968), thanks @mind-bending-forks! - More precise signatures for
mb_*
functions (#717), thanks @staabm! - Fix
array_column()
withnull
as$column_key
(#970), thanks @jlherren!
v1.4.4
🔧
Improvements - Return type extension for
array_column()
(#948), thanks @jlherren! - Generic stub for
DatePeriod
+ constructor dynamic return type extension (#958), #5953, thanks @Alban-io! - Resolve remaining predefined constants (#693), thanks @herndlm!
🐛
Bugfixes - Support all
array_filter()
flags for narrowing down types (#941), thanks @herndlm! - Fix error The supplied range exceeds the maximum array size (#934), #6375, thanks @voku!
- Nullable union template type bound is actually supported (https://github.com/phpstan/phpstan-src/commit/1d8b2eb269b1de8c449b372580852c2a6307c323), #4656, #5305, #3384
- Fix reporting nonexistent offset in
isset()
(https://github.com/phpstan/phpstan-src/commit/f05e8eb8fe3d979afa9e627371f4df92ab28fadf), #4926 - Fix interaction between template type and intersection type (#955), #6210, thanks @arnaud-lb!
- Fix tests on 32-bit (#957), thanks @herndlm!
- Fix resolving type of
isset()
,empty()
and null coalesce operator (??
) (https://github.com/phpstan/phpstan-src/commit/3b17acc5de4ac507d678f9ca9b2cd15937921ffb), #4592, #4903, #2420, #2718, #3126, #4586, #4887
🤖
Function signature fixes - Narrow down the return type of the
Throwable::getTrace()
method (#914), thanks @ste93cry! - Fix DOMDocument::saveXML signature (#956), thanks @kissifrot!
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.
Edited by Reiter, Christoph