Skip to content

Commit 0173dd0

Browse files
committed
allow from other base class
1 parent f846cd5 commit 0173dd0

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Rector\Tests\Arguments\Rector\ClassMethod\ReplaceArgumentDefaultValueRector\Fixture;
4+
5+
class FromOtherBaseClass
6+
{
7+
public const PATH = 'path';
8+
9+
public static function test1(string $path)
10+
{
11+
\Mage::getStoreConfig(self::PATH);
12+
}
13+
}
14+
15+
?>
16+
-----
17+
<?php
18+
19+
namespace Rector\Tests\Arguments\Rector\ClassMethod\ReplaceArgumentDefaultValueRector\Fixture;
20+
21+
class FromOtherBaseClass
22+
{
23+
public const PATH = 'path';
24+
25+
public static function test1(string $path)
26+
{
27+
\Mage::getStoreConfig(\Rector\Tests\Arguments\Rector\ClassMethod\ReplaceArgumentDefaultValueRector\Fixture\SomeBase::PATH);
28+
}
29+
}
30+
31+
?>

0 commit comments

Comments
 (0)