Skip to content

Commit

Permalink
Fix spec for PHP >= 8.4 #624
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost committed Oct 28, 2024
1 parent f425512 commit c1547e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Prophecy/Doubler/Generator/ClassCodeGeneratorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c1547e0

Please sign in to comment.