From c1547e0d1018a0d431cc012fc16951218750605f Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Wed, 14 Aug 2024 03:24:36 +0200 Subject: [PATCH] Fix spec for PHP >= 8.4 #624 --- spec/Prophecy/Doubler/Generator/ClassCodeGeneratorSpec.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/Prophecy/Doubler/Generator/ClassCodeGeneratorSpec.php b/spec/Prophecy/Doubler/Generator/ClassCodeGeneratorSpec.php index 6f728de6..09fea968 100644 --- a/spec/Prophecy/Doubler/Generator/ClassCodeGeneratorSpec.php +++ b/spec/Prophecy/Doubler/Generator/ClassCodeGeneratorSpec.php @@ -116,7 +116,7 @@ class CustomClass extends \RuntimeException implements \Prophecy\Doubler\Generat public $name; private $email; -public static function getName(array $fullname = NULL, \ReflectionClass $class, object $instance): ?string { +public static function getName(?array $fullname = NULL, \ReflectionClass $class, object $instance): ?string { return $this->name; } protected function getEmail(?string $default = 'ever.zet@gmail.com') { @@ -272,7 +272,7 @@ function it_overrides_properly_methods_with_args_passed_by_reference( namespace { class CustomClass extends \RuntimeException implements \Prophecy\Doubler\Generator\MirroredInterface { -public function getName(array &$fullname = NULL) { +public function getName(?array &$fullname = NULL) { return $this->name; }