-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = '[email protected]') { | ||
|
@@ -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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters