Skip to content

Commit c1ef05a

Browse files
authored
Add fixture test for skip internal php php-parser token on DowngradePhpTokenRector (#241)
1 parent f270792 commit c1ef05a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Rector\Tests\DowngradePhp80\Rector\StaticCall\DowngradePhpTokenRector\Fixture;
4+
5+
class SkipExtendsInternalPhpParserToken extends \PhpParser\Internal\TokenPolyfill
6+
{
7+
public function run()
8+
{
9+
return $this->text;
10+
}
11+
12+
public function run2()
13+
{
14+
$self = new self();
15+
return $self->text;
16+
}
17+
}

0 commit comments

Comments
 (0)