From 6b7f84e2ec15b8b5808e2d10379ba26b9ece5d10 Mon Sep 17 00:00:00 2001 From: Jeremiasz Major Date: Wed, 25 May 2022 17:56:33 +0200 Subject: [PATCH] Fix BC break --- src/Analyser/MutatingScope.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Analyser/MutatingScope.php b/src/Analyser/MutatingScope.php index 3fb33fdfcb..edfc170062 100644 --- a/src/Analyser/MutatingScope.php +++ b/src/Analyser/MutatingScope.php @@ -2475,8 +2475,8 @@ public function enterClassMethod( bool $isDeprecated, bool $isInternal, bool $isFinal, - ?bool $isPure, - bool $acceptsNamedArguments, + ?bool $isPure = null, + bool $acceptsNamedArguments = true, ): self { if (!$this->isInClass()) { @@ -2578,8 +2578,8 @@ public function enterFunction( bool $isDeprecated, bool $isInternal, bool $isFinal, - ?bool $isPure, - bool $acceptsNamedArguments, + ?bool $isPure = null, + bool $acceptsNamedArguments = true, ): self { return $this->enterFunctionLike(