-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DowngradePhp73] Handle comma in array on DowngradeFlexibleHeredocSyn…
…taxRector (#256) * [DowngradePhp73] Handle comma in array on DowngradeFlexibleHeredocSyntaxRector * update fixture * fix
- Loading branch information
1 parent
be0720b
commit 0ed4563
Showing
4 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...ePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector/Fixture/comma_in_array.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,45 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DowngradePhp73\Rector\String_\DowngradeFlexibleHeredocSyntaxRector\Fixture; | ||
|
||
class CommaInArray | ||
{ | ||
public function run() | ||
{ | ||
$variable = [ | ||
<<<EOT | ||
<?php | ||
/** @readonly */ | ||
class C { | ||
}\n | ||
EOT, | ||
new \stdClass() | ||
]; | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DowngradePhp73\Rector\String_\DowngradeFlexibleHeredocSyntaxRector\Fixture; | ||
|
||
class CommaInArray | ||
{ | ||
public function run() | ||
{ | ||
$variable = [ | ||
<<<EOT | ||
<?php | ||
/** @readonly */ | ||
class C { | ||
} | ||
EOT | ||
, | ||
new \stdClass() | ||
]; | ||
} | ||
} | ||
|
||
?> |
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
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