Skip to content

Commit 4d99196

Browse files
committed
Merge branch '3.4' into 4.0
2 parents c47e299 + 93314b0 commit 4d99196

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Serializer/SerializerFilterContextBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
1818
use ApiPlatform\Metadata\Util\AttributesExtractor;
1919
use ApiPlatform\Serializer\Filter\FilterInterface;
20+
use ApiPlatform\State\SerializerContextBuilderInterface as StateSerializerContextBuilderInterface;
2021
use Psr\Container\ContainerInterface;
2122
use Symfony\Component\HttpFoundation\Request;
2223

@@ -27,7 +28,7 @@
2728
*/
2829
final class SerializerFilterContextBuilder implements SerializerContextBuilderInterface
2930
{
30-
public function __construct(private readonly ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, private readonly ContainerInterface $filterLocator, private readonly SerializerContextBuilderInterface $decorated)
31+
public function __construct(private readonly ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, private readonly ContainerInterface $filterLocator, private readonly SerializerContextBuilderInterface|StateSerializerContextBuilderInterface $decorated)
3132
{
3233
}
3334

0 commit comments

Comments
 (0)