Skip to content

Commit

Permalink
Fix compat with Symfony 5 (#3242)
Browse files Browse the repository at this point in the history
* Fix compat with Symfony 5

* Revert unneeded changes
  • Loading branch information
nicolas-grekas authored and dunglas committed Nov 11, 2019
1 parent ed8c19f commit a2dbb3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"psr/cache": "^1.0",
"psr/container": "^1.0",
"symfony/http-foundation": "^4.3.6 || ^5.0",
"symfony/http-kernel": "^4.3 || ^5.0",
"symfony/http-kernel": "^4.3.7 || ^5.0",
"symfony/property-access": "^3.4 || ^4.0 || ^5.0",
"symfony/property-info": "^3.4 || ^4.0 || ^5.0",
"symfony/serializer": "^4.3 || ^5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(ResourceMetadataFactoryInterface $metadataFactory, C
/**
* {@inheritdoc}
*/
public function collect(Request $request, Response $response, \Exception $exception = null)
public function collect(Request $request, Response $response, \Throwable $exception = null)
{
$counters = ['ignored_filters' => 0];
$resourceClass = $request->attributes->get('_api_resource_class');
Expand Down

0 comments on commit a2dbb3c

Please sign in to comment.