-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php83] Handle default native constant on AddTypeToConstRector (#5843)
* [Php83] Handle default native constant on AddTypeToConstRector * [ci-review] Rector Rectify * fix --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
775916c
commit d5069f0
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ests/Php83/Rector/ClassConst/AddTypeToConstRector/Fixture/default_native_constant.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,21 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php83\Rector\ClassConst\AddTypeToConstRector\Fixture; | ||
|
||
final class DefaultNativeConstant | ||
{ | ||
public const FOO = PHP_INT_MAX; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php83\Rector\ClassConst\AddTypeToConstRector\Fixture; | ||
|
||
final class DefaultNativeConstant | ||
{ | ||
public const int FOO = PHP_INT_MAX; | ||
} | ||
|
||
?> |
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