Skip to content

Commit b38ef8e

Browse files
committed
Revert "Fixed type error introduced with api-platform upgrade"
This reverts commit a54c2db.
1 parent cb08176 commit b38ef8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Serializer/APIPlatform/DetermineTypeFromElementIRIDenormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace App\Serializer\APIPlatform;
2525

2626
use ApiPlatform\Metadata\Exception\ResourceClassNotFoundException;
27-
use ApiPlatform\Metadata\IriConverterInterface;
27+
use ApiPlatform\Api\IriConverterInterface;
2828
use ApiPlatform\Metadata\Operation;
2929
use ApiPlatform\Metadata\Post;
3030
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
@@ -60,6 +60,7 @@ public function __construct(private readonly IriConverterInterface $iriConverter
6060
* @param array $input
6161
* @param Operation $operation
6262
* @return array
63+
* @throws ResourceClassNotFoundException
6364
*/
6465
private function addTypeDiscriminatorIfNecessary(array $input, Operation $operation): array
6566
{
@@ -80,7 +81,6 @@ private function addTypeDiscriminatorIfNecessary(array $input, Operation $operat
8081
}
8182

8283
//Retrieve the element
83-
//@phpstan-ignore-next-line
8484
$element = $this->iriConverter->getResourceFromIri($input['element']);
8585

8686
//Retrieve the short name of the operation

0 commit comments

Comments
 (0)