-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test fixture to skip default parameter value
- Loading branch information
1 parent
dc19a23
commit 4bfbe3e
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
tests/Rules/NarrowPublicClassMethodParamTypeRule/Fixture/SkipDefault.php
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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\TypePerfect\Tests\Rules\NarrowPublicClassMethodParamTypeRule\Fixture; | ||
|
||
final class SkipDefault | ||
{ | ||
public function dontSetParamValue( | ||
string $Id | ||
): bool | ||
{ | ||
return true; | ||
} | ||
|
||
static public function run(): void | ||
{ | ||
$skipDefault = new SkipDefault(); | ||
$skipDefault->dontSetParamValue(); | ||
} | ||
} |
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