Skip to content

Commit 985d73d

Browse files
committed
Test and fix API Platform with Symfony 4.4
1 parent d2e7cf7 commit 985d73d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"require": {
1616
"php": ">=7.1",
1717
"doctrine/inflector": "^1.0",
18+
"fig/link-util": "^1.0@dev",
1819
"psr/cache": "^1.0",
1920
"psr/container": "^1.0",
2021
"symfony/http-foundation": "^3.4 || ^4.0",

src/Action/ExceptionAction.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Symfony\Component\Serializer\SerializerInterface;
2121

2222
/**
23-
* Renders a normalized exception for a given {@see \Symfony\Component\Debug\Exception\FlattenException}.
23+
* Renders a normalized exception for a given {@see FlattenException}.
2424
*
2525
* Usage:
2626
*
@@ -58,8 +58,10 @@ public function __construct(SerializerInterface $serializer, array $errorFormats
5858

5959
/**
6060
* Converts an exception to a JSON response.
61+
*
62+
* @param FlattenException $exception
6163
*/
62-
public function __invoke(FlattenException $exception, Request $request): Response
64+
public function __invoke($exception, Request $request): Response
6365
{
6466
$exceptionClass = $exception->getClass();
6567
$statusCode = $exception->getStatusCode();

0 commit comments

Comments
 (0)