diff --git a/ErrorRenderer/SerializerErrorRenderer.php b/ErrorRenderer/SerializerErrorRenderer.php index 596a49a41..5e1971de8 100644 --- a/ErrorRenderer/SerializerErrorRenderer.php +++ b/ErrorRenderer/SerializerErrorRenderer.php @@ -67,7 +67,7 @@ public function render(\Throwable $exception): FlattenException ]; return $flattenException->setAsString($this->serializer->serialize($flattenException, $format, $context))->setHeaders($flattenException->getHeaders() + $headers); - } catch (NotEncodableValueException | UnsupportedFormatException $e) { + } catch (NotEncodableValueException|UnsupportedFormatException $e) { return $this->fallbackErrorRenderer->render($exception); } } diff --git a/Negotiation/FormatNegotiator.php b/Negotiation/FormatNegotiator.php index d8d4048f0..51cea577a 100644 --- a/Negotiation/FormatNegotiator.php +++ b/Negotiation/FormatNegotiator.php @@ -21,8 +21,6 @@ /** * @author Guilhem Niot - * - * @final since 2.8 */ final class FormatNegotiator extends BaseNegotiator { diff --git a/Tests/Fixtures/Controller/ParamFetcherUnionTypeController.php b/Tests/Fixtures/Controller/ParamFetcherUnionTypeController.php index 69dd4af83..b20862087 100644 --- a/Tests/Fixtures/Controller/ParamFetcherUnionTypeController.php +++ b/Tests/Fixtures/Controller/ParamFetcherUnionTypeController.php @@ -22,7 +22,7 @@ class ParamFetcherUnionTypeController extends ParamFetcherController { /** * Make sure the ParamFetcher can be injected according to the mixed typehint. - */ + */ public function byUnionTypeAction(ParamFetcher|ParamFetcherInterface $pfu) { }