Skip to content

Commit 2402747

Browse files
committed
Fix PHPDoc
1 parent 2fe5abb commit 2402747

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/EventListener/DeserializeListener.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use ApiPlatform\Core\Util\RequestAttributesExtractor;
2323
use Symfony\Component\HttpFoundation\Request;
2424
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
25-
use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;
2625
use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException;
2726
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
2827
use Symfony\Component\Serializer\SerializerInterface;
@@ -66,6 +65,8 @@ public function __construct(SerializerInterface $serializer, SerializerContextBu
6665

6766
/**
6867
* Deserializes the data sent in the requested format.
68+
*
69+
* @throws UnsupportedMediaTypeHttpException
6970
*/
7071
public function onKernelRequest(GetResponseEvent $event): void
7172
{
@@ -105,7 +106,7 @@ public function onKernelRequest(GetResponseEvent $event): void
105106
/**
106107
* Extracts the format from the Content-Type header and check that it is supported.
107108
*
108-
* @throws NotAcceptableHttpException
109+
* @throws UnsupportedMediaTypeHttpException
109110
*/
110111
private function getFormat(Request $request): string
111112
{

0 commit comments

Comments
 (0)