Skip to content

Commit f0c618a

Browse files
committed
fix phpunit "Trait not found"
1 parent 4569a9e commit f0c618a

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Hydra/Serializer/DocumentationNormalizer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use ApiPlatform\Documentation\Documentation;
1717
use ApiPlatform\JsonLd\ContextBuilder;
1818
use ApiPlatform\JsonLd\ContextBuilderInterface;
19-
use ApiPlatform\JsonLd\Serializer\HydraOperationsTrait;
2019
use ApiPlatform\JsonLd\Serializer\HydraPrefixTrait;
2120
use ApiPlatform\Metadata\ApiProperty;
2221
use ApiPlatform\Metadata\ApiResource;

src/JsonLd/Serializer/HydraOperationsTrait.php renamed to src/Hydra/Serializer/HydraOperationsTrait.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\JsonLd\Serializer;
14+
namespace ApiPlatform\Hydra\Serializer;
1515

1616
use ApiPlatform\JsonLd\ContextBuilder;
1717
use ApiPlatform\Metadata\ApiResource;

src/JsonLd/Serializer/ItemNormalizer.php

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

1414
namespace ApiPlatform\JsonLd\Serializer;
1515

16+
use ApiPlatform\Hydra\Serializer\HydraOperationsTrait;
1617
use ApiPlatform\JsonLd\AnonymousContextBuilderInterface;
1718
use ApiPlatform\JsonLd\ContextBuilderInterface;
1819
use ApiPlatform\Metadata\ErrorResourceInterface;

0 commit comments

Comments
 (0)