-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php71] Skip magic const __LINE__ on BinaryOpBetweenNumberAndStringRe…
…ctor (#200)
- Loading branch information
1 parent
8675bcb
commit 932458f
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...ector/BinaryOp/BinaryOpBetweenNumberAndStringRector/Fixture/skip_magic_const_line.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,12 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector\Fixture; | ||
|
||
class SkipMagicConstLine | ||
{ | ||
public function run() | ||
{ | ||
$value = __LINE__ - 1; | ||
$value = 1 - __LINE__; | ||
} | ||
} |
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