-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
4e12ccf
commit 9bd00f9
Showing
3 changed files
with
59 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Mockery; | ||
|
||
class Foo2 implements Baz | ||
{ | ||
|
||
/** @var bool */ | ||
private $optional; | ||
|
||
public function __construct(bool $optional = true) | ||
{ | ||
$this->optional = $optional; | ||
} | ||
|
||
public function doFoo(): ?string | ||
{ | ||
if ($this->optional) { | ||
return null; | ||
} | ||
|
||
return 'foo'; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Mockery; | ||
|
||
class Foo3 implements Baz | ||
{ | ||
|
||
/** @var bool */ | ||
private $optional; | ||
|
||
public function __construct(bool $optional = true) | ||
{ | ||
$this->optional = $optional; | ||
} | ||
|
||
public function doFoo(): ?string | ||
{ | ||
if ($this->optional) { | ||
return null; | ||
} | ||
|
||
return 'foo'; | ||
} | ||
|
||
} |
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