We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83026bd commit aca9945Copy full SHA for aca9945
src/State/Provider/DeserializeProvider.php
@@ -13,6 +13,7 @@
13
14
namespace ApiPlatform\State\Provider;
15
16
+use ApiPlatform\Metadata\Exception\OperationNotFoundException;
17
use ApiPlatform\Metadata\HttpOperation;
18
use ApiPlatform\Metadata\Operation;
19
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
@@ -128,7 +129,7 @@ private function normalizeExpectedTypes(?array $expectedTypes = null): array
128
129
if (class_exists($expectedType) || interface_exists($expectedType)) {
130
try {
131
$normalizedType = $this->resourceMetadataCollectionFactory->create($expectedType)->getOperation()->getShortName();
- } catch (\Throwable) {
132
+ } catch (OperationNotFoundException) {
133
// Do nothing
134
}
135
0 commit comments