-
-
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.
[Php81] Fix regression skip call by ref on ReadOnlyPropertyRector (#4593
) * [Php81] Fix regression skip call by ref on ReadOnlyPropertyRector * Fixed 🎉 * [ci-review] Rector Rectify * [ci-review] Rector Rectify * Fixed 🎉 * scoped check * scoped check * remove comment --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
665bc65
commit 031f2de
Showing
3 changed files
with
97 additions
and
14 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_call_by_ref.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,16 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php81\Rector\Property\ReadOnlyPropertyRector\Fixture; | ||
|
||
final class SkipCallByRef | ||
{ | ||
public function __construct( | ||
private array $someArray, | ||
) { | ||
$this->doSomething($this->someArray); | ||
} | ||
|
||
public function doSomething(array &$someArray = null): void | ||
{ | ||
} | ||
} |
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