mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 15:30:13 +01:00
Revert "Fixed type error introduced with api-platform upgrade"
This reverts commit a54c2db9b9.
This commit is contained in:
@@ -24,7 +24,7 @@ declare(strict_types=1);
|
||||
namespace App\Serializer\APIPlatform;
|
||||
|
||||
use ApiPlatform\Metadata\Exception\ResourceClassNotFoundException;
|
||||
use ApiPlatform\Metadata\IriConverterInterface;
|
||||
use ApiPlatform\Api\IriConverterInterface;
|
||||
use ApiPlatform\Metadata\Operation;
|
||||
use ApiPlatform\Metadata\Post;
|
||||
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
|
||||
@@ -60,6 +60,7 @@ class DetermineTypeFromElementIRIDenormalizer implements DenormalizerInterface,
|
||||
* @param array $input
|
||||
* @param Operation $operation
|
||||
* @return array
|
||||
* @throws ResourceClassNotFoundException
|
||||
*/
|
||||
private function addTypeDiscriminatorIfNecessary(array $input, Operation $operation): array
|
||||
{
|
||||
@@ -80,7 +81,6 @@ class DetermineTypeFromElementIRIDenormalizer implements DenormalizerInterface,
|
||||
}
|
||||
|
||||
//Retrieve the element
|
||||
//@phpstan-ignore-next-line
|
||||
$element = $this->iriConverter->getResourceFromIri($input['element']);
|
||||
|
||||
//Retrieve the short name of the operation
|
||||
|
||||
Reference in New Issue
Block a user