chore(deps): update all non-major dependencies
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
friendsofphp/php-cs-fixer | require-dev | patch |
2.18.5 -> 2.18.6
|
phpstan/phpstan | require-dev | patch |
0.12.83 -> 0.12.84
|
vimeo/psalm | require-dev | patch |
4.7.0 -> 4.7.1
|
Release Notes
FriendsOfPHP/PHP-CS-Fixer
v2.18.6
- bug #5586 Add support for nullsafe object operator ("?->") (kubawerlos)
- bug #5597 Tokens - fix for checking block edges (kubawerlos)
- bug #5604 Custom annotations @type changed into @var (Leprechaunz)
- bug #5606 DoctrineAnnotationBracesFixer false positive (Leprechaunz)
- bug #5610 BracesFixer - fix braces of match expression (Leprechaunz)
- bug #5615 GroupImportFixer severely broken (Leprechaunz)
- bug #5617 ClassAttributesSeparationFixer - fix for using visibility for class elements (kubawerlos)
- bug #5618 GroupImportFixer - fix removal of import type when mixing multiple types (Leprechaunz)
- bug #5622 Exclude Doctrine documents from final fixer (ossinkine)
- bug #5630 PhpdocTypesOrderFixer - handle complex keys (Leprechaunz)
- minor #5554 DX: use tmp file in sys_temp_dir for integration tests (keradus)
- minor #5564 DX: make integration tests matching entries in FixerFactoryTest (kubawerlos)
- minor #5603 DX: DocumentationGenerator - no need to re-configure Differ (keradus)
- minor #5612 DX: use ::class whenever possible (kubawerlos)
- minor #5619 DX: allow XDebugHandler v2 (keradus)
- minor #5623 DX: when displaying app version, don't put extra space if there is no CODENAME available (keradus)
- minor #5626 DX: update PHPStan and way of ignoring flickering PHPStan exception (keradus)
- minor #5629 DX: fix CiIntegrationTest (keradus)
- minor #5636 DX: remove 'create' method in internal classes (keradus)
- minor #5637 DX: do not calculate bitmap via helper anymore (keradus)
- minor #5639 Move fix reports (classes and schemas) (keradus)
- minor #5640 DX: use constants for PHPUnit version (keradus)
- minor #5646 Cleanup YodaStyleFixerTest (kubawerlos)
phpstan/phpstan
v0.12.84
🚀
Major new feature Local type aliases
Thanks to @jiripudil and his MR phpstan/phpstan-src#460, you can now enjoy @phpstan-type
and @phpstan-import-type
in class-level PHPDoc. See the documentation for more details.
🔧
Improvements - Add
AlwaysUsedClassConstantsExtension
interface (#495), #4859, thanks @jdecool! - Remove unnecessary dependencies (phpstan/phpstan-src@
2cd7a03
)
🐛
Bugfixes -
unlink()
also clears stat cache (phpstan/phpstan-src@63d0670
), #4797 - Named arguments - fix optional arguments and variadics (phpstan/phpstan-src@
3e5621e
), #4800 - Fix
Closure::bind()
(phpstan/phpstan-src@566b44b
), #4808 - Fix CatchWithUnthrownExceptionRule for
new $expr()
(phpstan/phpstan-src@8463afd
), #4806 - Fix CatchWithUnthrownExceptionRule for
$expr::foo()
(phpstan/phpstan-src@8c7cf85
), #4805 - Allow autoloaders to
require
/require_once
for #4836 via a fake read (#491), thanks @rrazor! - Get closer to how type inference in TypeScript works (phpstan/phpstan-src@
3be90f0
), #4803 - Fix throwpoint in elseif condition (phpstan/phpstan-src@
fb62e5e
) - Fix excessive memory usage (phpstan/phpstan-src@
7c0146c
), #4815
🤖
Function signature fixes - Update XSLTProcessor::transformToXML signature (#492), thanks @jawira!
- Update
rediscluster
inspections (#493), thanks @sudo-plz! - Fix
array_sum
return type (#494), thanks @VincentLanglet! - Fix wrong IntlDateFormatter format signature (#496), thanks @alfredbez!
vimeo/psalm
v4.7.1
Prevent type unsoundness in static generic
@gharlan pointed out that return new static
can be unsound on generic classes (#5383).
This release fixes that unsoundness, emitting an UnsafeGenericInstantiation
issue in some instances. The docs have more information.
Other bugfixes
-
@weirdan fixed an issue with
instanceof
being flagged after a class_exists check (#5498) -
array_values
anditerator_to_array
should now respect nested templates (#5506) -
@weirdan added a prohibition for
@template
annotations on closures (#5499) - @weirdan marked more functions as impure (#5524)
- Improved error message when calling
isset(self::$some_property)
when the property has a non-nullable type, with help from @weirdan (#5489) -
@vudaltsov marked
flock
anditerator_to_array
as impure - Ensure function and methods are marked as used inside
throw
expressions (#5540, #5545) - Ensure nullsafe methods are assumed used (#5542)
- @AndrolGenhald improved analysis of concats (#5544)
-
@weirdan improved the return type for
get_object_vars()
(#5557) -
@weirdan added a coercion warning when coercing
object
toobject{foo: string}
(#5566) -
@weirdan added support for arrays of objects in
array_column
(#5567) - fix assigned-in-conditional edge-case (#5578, #5640)
- @AndrolGenhald added a lot of improvements to class constant resolution (#5591)
- @AndrolGenhald fixed method visibility false-negative (#5595)
-
@orklah allowed
numeric
to be falsy (#5598) -
@AndrolGenhald improved
int
/float
comparison for conditional types, allowing a fix forrange
types (#5601) - @AndrolGenhald fixed a race condition with cache directory setup (#5603)
-
@orklah added
numeric - int = string|float
calculations (#5611) -
@samsonasik marked
json_last_error
as impure - @weirdan forbidded rejecting named arguments when the parent method supports them (#5627)
- @Jean85 added compatibility for xdebug handler 2.0
-
@VincentLanglet added support for
@phpstan-import-type
as an alias for@psalm-import-type
(#5648) -
@orklah added missing documentation for
@no-named-arguments
(#5654) - Use more accurate type combination rules when converting templated union (#5652)
- Prevent crash when reporting issue on virtual arg (#5662)
- Use
mixed
type for$foo->$bar
, preventingUnusedVariable
in some situations (#5518) - Ensure
@var
docblocks don’t override a variable's by-reference property (#5517)
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.