Skip to content

Commit a54c2db

Browse files
committed
Fixed type error introduced with api-platform upgrade
1 parent 17caf47 commit a54c2db

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\Api\IriConverterInterface;
27+
use ApiPlatform\Metadata\IriConverterInterface;
2828
use ApiPlatform\Metadata\Operation;
2929
use ApiPlatform\Metadata\Post;
3030
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
@@ -60,7 +60,6 @@ public function __construct(private readonly IriConverterInterface $iriConverter
6060
* @param array $input
6161
* @param Operation $operation
6262
* @return array
63-
* @throws ResourceClassNotFoundException
6463
*/
6564
private function addTypeDiscriminatorIfNecessary(array $input, Operation $operation): array
6665
{
@@ -81,6 +80,7 @@ private function addTypeDiscriminatorIfNecessary(array $input, Operation $operat
8180
}
8281

8382
//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)