Skip to content

Commit 1f250b4

Browse files
committed
Merge 3.2
2 parents a749fe8 + 5687986 commit 1f250b4

File tree

22 files changed

+50
-23
lines changed

22 files changed

+50
-23
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v3.2.10
4+
5+
### Bug fixes
6+
7+
* [6f3c6a663](https://github.com/api-platform/core/commit/6f3c6a663cc55730580b82d146b8d62cac4f1bc5) fix(symfony): attribute filter names (#6062)
8+
* [dc77c7949](https://github.com/api-platform/core/commit/dc77c7949a6e8c48d57708d8f43027e00124388c) fix(symfony): disable symfony error handling by default
9+
* [f75649d49](https://github.com/api-platform/core/commit/f75649d49139e332bb739aece56a315943162770) fix(symfony): use Type constraint violation code instead of exception code
10+
11+
## v3.2.9
12+
13+
* [ecffcde](https://github.com/api-platform/core/pull/6063/commits/ecffcdeb0a27e49256c56502f6f6e327d9e03d5b) chore: remove comparator conflict wrongly introduced
14+
315
## v3.2.8
416

517
### Bug fixes
@@ -1977,4 +1989,4 @@ Please read #2825 if you have issues with the behavior of Readable/Writable Link
19771989
## 1.0.0 beta 2
19781990

19791991
* Preserve indexes when normalizing and denormalizing associative arrays
1980-
* Allow setting default order for property when registering a `Doctrine\Orm\Filter\OrderFilter` instance
1992+
* Allow setting default order for property when registering a `Doctrine\Orm\Filter\OrderFilter` instance

docs/src/DependencyInjection/Compiler/AttributeFilterPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace ApiPlatform\Playground\DependencyInjection\Compiler;
1515

16-
use ApiPlatform\Util\AttributeFilterExtractorTrait;
16+
use ApiPlatform\Metadata\Util\AttributeFilterExtractorTrait;
1717
use Symfony\Component\DependencyInjection\ChildDefinition;
1818
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1919
use Symfony\Component\DependencyInjection\ContainerBuilder;

features/main/validation.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,40 +119,40 @@ Feature: Using validations groups
119119
{
120120
"propertyPath": "",
121121
"message": "This value should be of type unknown.",
122-
"code": "0",
122+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40",
123123
"hint": "Failed to create object because the class misses the \"baz\" property."
124124
},
125125
{
126126
"propertyPath": "qux",
127127
"message": "This value should be of type string.",
128-
"code": "0"
128+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40"
129129
},
130130
{
131131
"propertyPath": "foo",
132132
"message": "This value should be of type bool.",
133-
"code": "0"
133+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40"
134134
},
135135
{
136136
"propertyPath": "bar",
137137
"message": "This value should be of type int.",
138-
"code": "0"
138+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40"
139139
},
140140
{
141141
"propertyPath": "uuid",
142142
"message": "This value should be of type uuid.",
143-
"code": "0",
143+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40",
144144
"hint": "Invalid UUID string: y"
145145
},
146146
{
147147
"propertyPath": "relatedDummy",
148148
"message": "This value should be of type array|string.",
149-
"code": "0",
149+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40",
150150
"hint": "The type of the \"relatedDummy\" attribute must be \"array\" (nested document) or \"string\" (IRI), \"integer\" given."
151151
},
152152
{
153153
"propertyPath": "relatedDummies",
154154
"message": "This value should be of type array.",
155-
"code": "0"
155+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40"
156156
}
157157
]
158158
}

src/Doctrine/Odm/State/LinksHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface LinksHandlerInterface
2424
/**
2525
* Handle Doctrine ORM links.
2626
*
27-
* @see ApiPlatform\Doctrine\Odm\State\LinksHandlerTrait
27+
* @see LinksHandlerTrait
2828
*
2929
* @param array<string, mixed> $uriVariables
3030
* @param array{entityClass: string, operation: Operation}&array<string, mixed> $context

src/Doctrine/Odm/State/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Options implements OptionsInterface
2020
/**
2121
* @param mixed $handleLinks experimental callable, typed mixed as we may want a service name in the future
2222
*
23-
* @see \ApiPlatform\Doctrine\Odm\State\LinksHandlerInterface
23+
* @see LinksHandlerInterface
2424
*/
2525
public function __construct(
2626
protected ?string $documentClass = null,

src/Doctrine/Orm/State/LinksHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface LinksHandlerInterface
2525
/**
2626
* Handle Doctrine ORM links.
2727
*
28-
* @see ApiPlatform\Doctrine\Orm\State\LinksHandlerTrait
28+
* @see LinksHandlerTrait
2929
*
3030
* @param array<string, mixed> $uriVariables
3131
* @param array{entityClass: string, operation: Operation}&array<string, mixed> $context

src/Doctrine/Orm/State/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Options implements OptionsInterface
2020
/**
2121
* @param string|callable $handleLinks experimental callable, typed mixed as we may want a service name in the future
2222
*
23-
* @see \ApiPlatform\Doctrine\Orm\State\LinksHandlerInterface
23+
* @see LinksHandlerInterface
2424
*/
2525
public function __construct(
2626
protected ?string $entityClass = null,

src/Elasticsearch/Tests/State/ItemProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testGetInexistantItem(): void
9191

9292
$documentMetadataFactoryProphecy = $this->prophesize(DocumentMetadataFactoryInterface::class);
9393

94-
$clientClass = class_exists(\Elasticsearch\Client::class) ? \Elasticsearch\Client::class : \Elastic\Elasticsearch\ClientInterface::class;
94+
$clientClass = class_exists(\Elasticsearch\Client::class) ? \Elasticsearch\Client::class : ClientInterface::class;
9595

9696
$clientProphecy = $this->prophesize($clientClass);
9797
$clientProphecy->get(['index' => 'foo', 'id' => '404'])->willReturn([

src/JsonApi/Serializer/ConstraintViolationListNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use Symfony\Component\Validator\ConstraintViolationListInterface;
2323

2424
/**
25-
* Converts {@see \Symfony\Component\Validator\ConstraintViolationListInterface} to a JSON API error representation.
25+
* Converts {@see ConstraintViolationListInterface} to a JSON API error representation.
2626
*
2727
* @author Héctor Hurtarte <[email protected]>
2828
*/

src/Metadata/Resource/Factory/NotExposedOperationResourceMetadataCollectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function create(string $resourceClass): ResourceMetadataCollection
6060
foreach ($resourceMetadataCollection as $resource) {
6161
$operations = $resource->getOperations();
6262

63-
/** @var \ApiPlatform\Metadata\HttpOperation $operation */
63+
/** @var HttpOperation $operation */
6464
foreach ($operations as $operation) {
6565
// An item operation has been found, nothing to do anymore in this factory
6666
if (('GET' === $operation->getMethod() && !$operation instanceof CollectionOperationInterface) || ($operation->getExtraProperties()['is_legacy_resource_metadata'] ?? false)) {

0 commit comments

Comments
 (0)