-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php80] Add null default value when child more params no default valu…
…e AddParamBasedOnParentClassMethodRector (#1454)
- Loading branch information
1 parent
f2e58a2
commit fa92ec2
Showing
3 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...AddParamBasedOnParentClassMethodRector/Fixture/child_more_params_no_default_value.php.inc
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,29 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector\Fixture; | ||
|
||
use Rector\Tests\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector\Source\ParentWithParam; | ||
|
||
// ref https://3v4l.org/BPFsU | ||
class ChildMoreParamsNoDefaultValue extends ParentWithParam{ | ||
public function execute($foo, $bar) | ||
{ | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector\Fixture; | ||
|
||
use Rector\Tests\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector\Source\ParentWithParam; | ||
|
||
// ref https://3v4l.org/BPFsU | ||
class ChildMoreParamsNoDefaultValue extends ParentWithParam{ | ||
public function execute($foo, $bar = null) | ||
{ | ||
} | ||
} | ||
|
||
?> |
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
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