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(