Skip to content

Commit d145f43

Browse files
authored
add enum case to StringClassNameToClassConstantRector (#7710)
1 parent 7486ed5 commit d145f43

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php55\Rector\String_\StringClassNameToClassConstantRector\Fixture;
4+
5+
final class CoverEnum
6+
{
7+
public function run()
8+
{
9+
$enumClass = 'Rector\Tests\Php55\Rector\String_\StringClassNameToClassConstantRector\Source\SomeEnum';
10+
}
11+
}
12+
13+
?>
14+
-----
15+
<?php
16+
17+
namespace Rector\Tests\Php55\Rector\String_\StringClassNameToClassConstantRector\Fixture;
18+
19+
final class CoverEnum
20+
{
21+
public function run()
22+
{
23+
$enumClass = \Rector\Tests\Php55\Rector\String_\StringClassNameToClassConstantRector\Source\SomeEnum::class;
24+
}
25+
}
26+
27+
?>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php55\Rector\String_\StringClassNameToClassConstantRector\Source;
4+
5+
enum SomeEnum
6+
{
7+
}

0 commit comments

Comments
 (0)