-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodingStyle] Skip override parent method on UnSpreadOperatorRector (#…
…2223) * Add failing test fixture for UnSpreadOperatorRector # Failing Test for UnSpreadOperatorRector Based on https://getrector.org/demo/f83cf736-ff98-4bc4-86a8-4611c8dd8804 * Fixes #2220 * fixture * [ci-review] Rector Rectify Co-authored-by: Alies Lapatsin <lptn@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
e978256
commit 6327904
Showing
3 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...odingStyle/Rector/ClassMethod/UnSpreadOperatorRector/Fixture/skip_override_method.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,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector\Fixture; | ||
|
||
use Rector\Tests\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector\Source\ParentClass; | ||
|
||
final class SkipOverrideMethod extends ParentClass | ||
{ | ||
public static function make(... $arguments): static | ||
{ | ||
return new static(); | ||
} | ||
} | ||
?> |
13 changes: 13 additions & 0 deletions
13
rules-tests/CodingStyle/Rector/ClassMethod/UnSpreadOperatorRector/Source/ParentClass.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,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector\Source; | ||
|
||
class ParentClass | ||
{ | ||
public static function make(... $arguments): static | ||
{ | ||
return new static(); | ||
} | ||
} |
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