From 64143dd139da4e52503eb92d0b3642aefed8282b Mon Sep 17 00:00:00 2001 From: Mathieu Santostefano Date: Fri, 12 Nov 2021 15:57:39 +0100 Subject: [PATCH] Fix FlattenException::setPrevious argument typing --- .../Component/ErrorHandler/Exception/FlattenException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php b/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php index dc4733853738f..44bf9c9381b79 100644 --- a/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php +++ b/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php @@ -276,7 +276,7 @@ public function getPrevious() /** * @return $this */ - final public function setPrevious(LegacyFlattenException $previous): self + final public function setPrevious(?LegacyFlattenException $previous): self { $this->previous = $previous;