forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php83] Add support +/- value on constant on AddTypeToConstRector (re…
- Loading branch information
1 parent
75eef08
commit 9e7212e
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
rules-tests/Php83/Rector/ClassConst/AddTypeToConstRector/Fixture/plus_or_minus.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,25 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php83\Rector\ClassConst\AddTypeToConstRector\Fixture; | ||
|
||
final class PlusOrMinus | ||
{ | ||
public const MINUS_1 = -1; | ||
|
||
public const PLUS_1 = +1; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php83\Rector\ClassConst\AddTypeToConstRector\Fixture; | ||
|
||
final class PlusOrMinus | ||
{ | ||
public const int MINUS_1 = -1; | ||
|
||
public const int PLUS_1 = +1; | ||
} | ||
|
||
?> |
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