-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHP 7.3] Move RemoveMissingCompactVariableRector (#5373)
* [PHP 7.3] Move RemoveMissingCompactVariableRector * [ci-review] Rector Rectify Co-authored-by: rector-bot <tomas@getrector.org>
- Loading branch information
1 parent
fcc6666
commit 1fc272e
Showing
3 changed files
with
57 additions
and
12 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
28 changes: 28 additions & 0 deletions
28
...hp73/tests/Rector/FuncCall/RemoveMissingCompactVariableRector/Fixture/multi_types.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,28 @@ | ||
<?php | ||
|
||
namespace Rector\Php73\Tests\Rector\FuncCall\RemoveMissingCompactVariableRector\Fixture; | ||
|
||
final class MultiTypes | ||
{ | ||
public function run() | ||
{ | ||
$variables = ['foo', 'bar']; | ||
compact($variables); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Php73\Tests\Rector\FuncCall\RemoveMissingCompactVariableRector\Fixture; | ||
|
||
final class MultiTypes | ||
{ | ||
public function run() | ||
{ | ||
$variables = ['foo', 'bar']; | ||
} | ||
} | ||
|
||
?> |
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