Update all non-major dependencies
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
api-platform/core (source) | require | minor |
2.5.9 -> 2.6.1
|
friendsofphp/php-cs-fixer | require-dev | minor |
2.17.3 -> 2.18.2
|
phpstan/phpstan | require-dev | patch |
0.12.67 -> 0.12.70
|
symfony/framework-bundle (source) | require | patch |
4.4.18 -> 4.4.19
|
symfony/phpunit-bridge (source) | require-dev | patch |
4.4.18 -> 4.4.19
|
Release Notes
api-platform/core
v2.6.1
- Fix defaults when using attributes (#3978)
v2.6.0
- Cache: adds a
max_header_length
configuration (#2865) - Cache: support
stale-while-revalidate
andstale-if-error
cache control headers (#3439) - Config: Add an option to set global default values (#3151)
- DTO: Add
ApiPlatform\Core\DataTransformer\DataTransformerInitializerInterface
to pre-hydrate inputs (#3701) - DTO: Improve Input/Output support (#3231)
- Data Persisters: Add
previous_data
to the context passed to persisters when available (#3752) - Data Persister: Add a
ResumableDataPersisterInterface
that allows to call multiple persisters (#3912) - Debug: Display API Platform's version in the debug bar (#3235)
- Docs: Make
asset_package
configurable (#3764) - Doctrine: Allow searching on multiple values on every strategies (#3786)
- Elasticsearch: The
Paginator
class constructor now receives the denormalization context to support denormalizing documents using serialization groups. This change may cause potential BC breaks for existing applications as denormalization was previously done without serialization groups. - GraphQL: BC New syntax for the filters' arguments to preserve the order:
order: [{foo: 'asc'}, {bar: 'desc'}]
(#3468) - GraphQL: BC
operation
is nowoperationName
to follow the standard (#3568) - GraphQL: BC
paginationType
is nowpagination_type
(#3614) - GraphQL: Add page-based pagination (#3175, #3517)
- GraphQL: Allow formatting GraphQL errors based on exceptions (#3063)
- GraphQL: Errors thrown from the GraphQL library can now be handled (#3632, #3643)
- GraphQL: Possibility to add a custom description for queries, mutations and subscriptions (#3477, #3514)
- GraphQL: Subscription support with Mercure (#3321)
- GraphQL: Support for field name conversion (serialized name) (#3455, #3516)
- Hydra: Sort entries in the API entrypoint (#3091)
- Identifiers: Add Symfony Uid support (#3715)
- IriConverter: BC Fix double encoding in IRIs - may cause breaking change as some characters no longer encoded in output (#3552)
- JSON-LD: Add an
iri_only
attribute to simplify documents structure (useful when using Vulcain) (#3275) - Exception: Response error codes can be specified via the
ApiPlatform\Core\Exception\ErrorCodeSerializableInterface
(#2922) - Mercure: Add a
normalization_context
option inmercure
attribute (#3772) - Messenger: Add a context stamp containing contextual data (#3157)
- Metadata: Deprecate
InheritedPropertyMetadataFactory
(#3273) - Metadata: Improve and simplify identifiers management (#3825)
- Metadata: Support the Symfony Serializer's
@Ignore
annotation (#3820) - Metadata: Support using annotations as PHP 8 attributes (#3869, #3868, #3851)
- Metadata: Throw an error when no identifier is defined (#3871)
- Metadata: Use
id
as default identifier if none provided (#3874) - MongoDB: Mercure support (#3290)
- MongoDB: Possibility to add execute options (aggregate command fields) for a resource, like
allowDiskUse
(#3144) - OpenAPI: Add default values of PHP properties to the documentation (#2386)
- OpenAPI: BC Replace all characters other than
[a-zA-Z0-9\.\-_]
to.
in definition names to be compliant with OpenAPI 3.0 (#3669) - OpenAPI: Refactor OpenAPI v3 support, OpenAPI v2 (aka Swagger) is deprecated (#3407)
- Order: Support default order for a specific custom operation (#3784)
- PATCH: Support patching deep objects (#3847)
- Router: UrlGenerator strategy configuration via
url_generation_strategy
(#3198) - Routing: Add stateless
ApiResource
attribute (#3436) - Security: Add support for access control rule on attributes (#3503)
- Subresources:
resourceClass
can now be defined as a container parameter in XML and YAML definitions - Symfony: improved 5.x support with fewer deprecations (#3589)
- Symfony: Allow using
ItemNormalizer
without Symfony SecurityBundle (#3801) - Symfony: Lazy load all commands (#3798)
- Tests: adds a method to retrieve the CookieJar in the test Client
getCookieJar
- Tests: Fix the registration of the
test.api_platform.client
service when theFrameworkBundle
bundle is registered after theApiPlatformBundle
bundle (#3928) - Validator: Add the violation code to the violation properties (#3857)
- Validator: Allow customizing the validation error status code (#3808)
- Validator: Autoconfiguration of validation groups generator via
ApiPlatform\Core\Validator\ValidationGroupsGeneratorInterface
- Validator: Deprecate using a validation groups generator service not implementing
ApiPlatform\Core\Bridge\Symfony\Validator\ValidationGroupsGeneratorInterface
(#3346) - Validator: Property validation through OpenAPI (#33329)
- Validator: Query filters and parameters are validated (#1723)
-
ExceptionInterface
now extends\Throwable
(#3217)
v2.5.10
- Hydra: only display
hydra:next
when the item total is strictly greater than the number of items per page (#3967)
FriendsOfPHP/PHP-CS-Fixer
v2.18.2
- bug #5466 Fix runtime check of PHP version (keradus)
- minor #4250 POC Tokens::insertSlices (keradus)
v2.18.1
- bug #5447 switch_case_semicolon_to_colon should skip match/default statements (derrabus)
- bug #5453 SingleSpaceAfterConstructFixer - better handling of closing parenthesis and brace (keradus)
- bug #5454 NullableTypeDeclarationForDefaultNullValueFixer - support property promotion via constructor (keradus)
- bug #5455 PhpdocToCommentFixer - add support for attributes (keradus)
- bug #5462 NullableTypeDeclarationForDefaultNullValueFixer - support union types (keradus)
- minor #5444 Fix PHP version number in PHP54MigrationSet description (jdreesen, keradus)
- minor #5445 DX: update usage of old TraversableContains in tests (keradus)
- minor #5456 DX: Fix CiIntegrationTest (keradus)
- minor #5457 CI: fix params order (keradus)
- minor #5458 CI: fix migration workflow (keradus)
- minor #5459 DX: cleanup PHP Migration rulesets (keradus)
v2.18.0
- feature #4943 Add PSR12 ruleset (julienfalque, keradus)
- feature #5426 Update Symfony ruleset (keradus)
- feature #5428 Add/Change PHP.MigrationSet to update array/list syntax to short one (keradus)
- minor #5441 Allow execution under PHP 8 (keradus)
v2.17.5
- bug #5447 switch_case_semicolon_to_colon should skip match/default statements (derrabus)
- bug #5453 SingleSpaceAfterConstructFixer - better handling of closing parenthesis and brace (keradus)
- bug #5454 NullableTypeDeclarationForDefaultNullValueFixer - support property promotion via constructor (keradus)
- bug #5455 PhpdocToCommentFixer - add support for attributes (keradus)
- bug #5462 NullableTypeDeclarationForDefaultNullValueFixer - support union types (keradus)
- minor #5445 DX: update usage of old TraversableContains in tests (keradus)
- minor #5456 DX: Fix CiIntegrationTest (keradus)
- minor #5457 CI: fix params order (keradus)
- minor #5459 DX: cleanup PHP Migration rulesets (keradus)
v2.17.4
- bug #5379 PhpUnitMethodCasingFixer - Do not modify class name (localheinz)
- bug #5404 NullableTypeTransformer - constructor property promotion support (Wirone)
- bug #5433 PhpUnitTestCaseStaticMethodCallsFixer - fix for abstract static method (kubawerlos)
- minor #5234 DX: Add Docker dev setup (julienfalque, keradus)
- minor #5391 PhpdocOrderByValueFixer - Add additional annotations to sort (localheinz)
- minor #5392 PhpdocScalarFixer - Fix description (localheinz)
- minor #5397 NoExtraBlankLinesFixer - PHP8 throw support (SpacePossum)
- minor #5399 Add PHP8 integration test (keradus)
- minor #5405 TypeAlternationTransformer - add support for PHP8 (SpacePossum)
- minor #5406 SingleSpaceAfterConstructFixer - Attributes, comments and PHPDoc support (SpacePossum)
- minor #5407 TokensAnalyzer::getClassyElements - return trait imports (SpacePossum)
- minor #5410 minors (SpacePossum)
- minor #5411 bump year in LICENSE file (SpacePossum)
- minor #5414 TypeAlternationTransformer - T_FN support (SpacePossum)
- minor #5415 Forbid execution under PHP 8.0.0 (keradus)
- minor #5416 Drop Travis CI (keradus)
- minor #5419 CI: separate SCA checks to dedicated jobs (keradus)
- minor #5420 DX: unblock PHPUnit 9.5 (keradus)
- minor #5423 DX: PHPUnit - disable verbose by default (keradus)
- minor #5425 Cleanup 3.0 todos (keradus)
- minor #5427 Plan changing defaults for array_syntax and list_syntax in 3.0 release (keradus)
- minor #5429 DX: Drop speedtrap PHPUnit listener (keradus)
- minor #5432 Don't allow unserializing classes with a destructor (jderusse)
- minor #5435 DX: PHPUnit - groom configuration of time limits (keradus)
- minor #5439 VisibilityRequiredFixer - support type alternation for properties (keradus)
- minor #5442 DX: FunctionsAnalyzerTest - add missing 7.0 requirement (keradus)
phpstan/phpstan
v0.12.70
🔧
Improvements -
phpstan.phar
is built with Composer v2, solvesOutOfBoundsException: Package "project/project" is not installed
error (getsentry/sentry-symfony#383) thanks to composer/composer#9635 - Optimization for currently analysed class reflection when there's only one occurrence of the same class in a project (phpstan/phpstan-src@
d3435dd
), #4435
🐛
Bugfixes - "Unable to resolve template type" has to check against explicit NeverType only (phpstan/phpstan-src@
ba4bc4f
), #4422 - Update phpstorm-stubs (phpstan/phpstan-src@
6bbd629
) - Fix link in "internal error" message (phpstan/phpstan-src@
a2ce51b
)
🤖
Function signature fixes - Add SimpleXmlElementXpathMethodReturnTypeExtension (#428), thanks @VincentLanglet!
- Allow lowercase variant of constant for
setcookie()
(#431), thanks @VincentLanglet!
v0.12.69
🔧
Improvements - The PHAR is present only once in
phpstan/phpstan
distribution (#4390), thanks @mvorisek! - ComposerJsonAndInstalledJsonSourceLocatorMaker - optimized memory consumption for many autoloaded files (phpstan/phpstan-src@
e4b6ffd
), #4401 - Optimized caching of
isSuperTypeOf()
inObjectType
(phpstan/phpstan-src@e88491b
) - Unification for working with current class reflection (like
self::
) across CallStaticMethodsRule, ClassConstantRule, AccessStaticPropertiesRule (phpstan/phpstan-src@863e6c6
), composer/composer#9635 - New feature - require specifying
callable
signatures in PHPDocs: turn on withcheckMissingCallableSignature
parameter (off by default) (phpstan/phpstan-src#430), thanks @dktapps!
🐛
Bugfixes - Fixed preserving non-empty array in
array_reverse()
(phpstan/phpstan-src@3ccc152
), #4398 - OPENSSL_VERSION_NUMBER is a dynamic constant name (phpstan/phpstan-src@
c865bc3
) - IteratorAggregate - read key and value type from generics if
getIterator()
doesn't have PHPDoc type (phpstan/phpstan-src@c75b0ea
), https://github.com/phpstan/phpstan/discussions/4415 - Inline
@var
above property should not pollute scope inside methods (phpstan/phpstan-src@e832df4
), #4412 - Infer return type
never
from closure (phpstan/phpstan-src@98c8dd6
), #4416 - Fix excluding files when excludePaths.analyse and excludePaths.analyseAndScan are used at the same time (phpstan/phpstan-src@
09e4fbe
), #4417 - VoidType::accepts - support CompoundType (phpstan/phpstan-src@
8b4cab5
)
🤖
Function signature fixes
v0.12.68
🔧
Improvements - Infer return type of anonymous functions from the return statements (phpstan/phpstan-src@
96750b5
), #3115, #3091, #2576
🐛
Bugfixes - Fix ClosureReturnStatementsNode to not contain statements from nested closures and anonymous functions (phpstan/phpstan-src@
a81a8c3
) - Fix FunctionReturnStatementsNode to not contain statements from nested closures and anonymous functions ([phpstan/phpstan-src@
c70325b
Renovate configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.