Update all non-major dependencies
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
api-platform/core (source) | require | patch |
2.6.1 -> 2.6.2
|
phpstan/phpstan | require-dev | patch |
0.12.70 -> 0.12.74
|
vimeo/psalm | require-dev | minor |
4.4.1 -> 4.5.0
|
web-token/jwt-easy | require | patch |
2.2.7 -> 2.2.8
|
web-token/jwt-signature-algorithm-rsa | require | patch |
2.2.7 -> 2.2.8
|
Release Notes
api-platform/core
v2.6.2
- Validation: properties regex pattern is now compliant with ECMA 262 (#4027)
- OpenApi: normalizer is now backward compatible (#4016), fix the name converter issue changing OpenApi properties (#4019)
- Identifiers: Break after transforming the identifier (#3985), use the identifiers context to transform with multiple classes (#4029)
- JsonSchema: Revert
ALLOW_EXTRA_ATTRIBUTE=false
as it is a BC break and will be done in 3.0 instead see #3881 (#4007) - Subresource: fix ApiSubresource maxDepth option (#3986), recursive issue in the profiler (#4023)
- OpenApi: Allow
requestBody
andparameters
via theopenapi_context
(#4001), makeopenapi_context
work on subresources (#4004), sort paths (#4013) - Config: Allow disabling OpenAPI and Swagger UI without loosing the schema (#3968 and #4018), fix pagination defaults (#4011)
- DataPersister: context propagation fix (#3983)
phpstan/phpstan
v0.12.74
🔧
Improvements - Resolve
StaticType
coming from dynamic return type extensions (phpstan/phpstan-src@76b65b4
)
🐛
Bugfixes - WrongVariableNameInVarTagRule - fix iteratee variable above foreach (phpstan/phpstan-src@
3d365fc
), #4504 - Fix undefined variable in
@var
in unreachable code (phpstan/phpstan-src@ec4e7ed
), #4505
v0.12.73
🔧
Improvements - Support
@var
above global keyword (phpstan/phpstan-src@fa5f8ec
), #4500 - Rework processing inline
@var
(phpstan/phpstan-src@e501091
)
v0.12.72
🔧
Improvements - Tip linking to blogpost about solving "no value type specified in iterable type" error (phpstan/phpstan-src@
d0a35b5
) - Do not report "Unable to resolve template type" when the type is not present in parameters (phpstan/phpstan-src@
cec9ef6
) - WrongVariableNameInVarTagRule - report for all statement types (phpstan/phpstan-src@
0e84414
) - InvalidPhpDocVarTagTypeRule - report for all PHPDocs containing
@var
(phpstan/phpstan-src@a5a9a4d
)
🔪
Bleeding edge - Check that function-scoped template type is in a parameter (phpstan/phpstan-src@
18bdd34
)
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.
🐛
Bugfixes - Fix resolving types in
@var
aboveuse
statement (phpstan/phpstan-src@4fff79c
), #4486 - Fix resolving types in
@var
abovenamespace
statement (phpstan/phpstan-src@26fb6dd
) - Result cache - invalidate after running
composer install
(phpstan/phpstan-src@f11c0f0
), #4495
v0.12.71
🔧
Improvements - Performance optimizations (phpstan/phpstan-src@
ca7e9ef
, phpstan/phpstan-src@369cc18
, ondrejmirtes/BetterReflection@fb85182
) - Dynamic return type extension for understanding
compact()
function (phpstan/phpstan-src@2a75a25
) - Improve
CompactVariablesRule
- recognize array parameters (phpstan/phpstan-src@f2dd33a
)
🐛
Bugfixes - Do not report calls to pure methods/functions with
@return never
on a separate line (phpstan/phpstan-src@136db04
), #4455 - Infer
never
return type in closure only with missing orvoid
native return typehint (phpstan/phpstan-src@809807a
), #4442 - Fix CachedParser returning stale cache when asked for richer AST through parseFile (phpstan/phpstan-src@
bef5a26
) - Do not complain about interface and abstract class when instantiating from object (phpstan/phpstan-src@
5ad91d2
), #4471 - Fixed
CallableType::getReferencedClasses()
(phpstan/phpstan-src@09da0a3
)
🤖
Function signature fixes - Fix
MemcachePool::get
declaration (return types) (#434), thanks @fizzka! - Update Imagick functionMap (#435), thanks @davidlienhard!
vimeo/psalm
v4.5.0
Features
- @Danysan1 added support for CodeClimate (#5030)
-
@bdsl added detection of property type variance in #5131. Non-invariant property types causes a fatal error if the property types are specified in PHP code, but can also signal issues with your code if they're specified in docblocks. Psalm has two separate issues for this,
NonInvariantPropertyType
andNonInvariantDocblockPropertyType
. - Taint Analysis @adrienlucas added an option to dump the taint flow graph for debugging purposes (#5080)
- Language Server @joehoyle added support for static class method completion (#5085) and completions for array keys (#5105) and constants (#5115)
- Thanks to @weirdan, Psalm now emits exit code 1 only when it has internal issues. When it finds issues with your code it emits code 2 (#5087)
-
@weirdan added checks to prevent invalid implementation of
Traversable
(#5171)
Changes
- The meaning of
non-empty-string
has been clarified to mean "every string except the empty string''
". A new type,non-falsy-string
, represents "every string except the empty string and the string'0'
". This follows PHP's treatment of falsiness, where the string'0'
is treated as false.
Bugfixes
- Don't discard staticness of objects when combining types (#5029)
- @orklah fixed #5021 by having Psalm calculate more literal values
-
@lukasbestle fixed #5037 by removing the
SimpleXMLIterator
's reliance on the new\Stringable
interface - avoid false-positive in a dynamic property fetch inside a ternary
- prevent complex assertions from crashing reflection (#5025)
- improve string non-emptiness combinations (#5017)
-
@weirdan fixed #5048 by ensuring the autoloader is started in
psalm --init
-
@danog fixed #4289 by checking iterator types in
yield from
expressions - @weirdan fixed #5057 by adding flows to array spreads
-
@weirdan ensured
class_alias()
calls are respected when accessing static properties (#5068) - Language Server @joehoyle fixed a cache invalidation issue in language server mode (#5084)
- @orklah provided a fix for #5082 by only transforming a keyed array to a callable array if there are two elements
-
@sj-i improved signatures for
PDOStatement
(#5100) - Taint Analysis prevented an issue where taint analysis could loop endlessly
- fix issue using
PDOStatement::fetchObject
wherestdClass
is not also used (#5099) - Provide more errors when using named params incorrectly (#4631)
-
Unused code detection @joehoyle added reference tracking for
global
variables (#5122) -
Taint Analysis
@psalm-flow
is now supported in methods (#5137) -
@pilif added a parameter to
DateTime::createFromInterface
(#5138) - Psalter @orklah fixed a bug that used an inexact return type for anonymous classes (#5145)
-
Unused code detection @weirdan marked
throw
variables as always used (#5166) -
@vudaltsov improved the signature for
PDO::pgsqlGetNotify
(#5169) - improve handling of callables in the form
[$some_var, 'some_method_name']
(#5176)
Internal
Renovate configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Reiter, Christoph