Skip to content

Commit ef3a232

Browse files
authored
[NodeTypeResolver] Add test for usage namespaced_name on ClassConstFetchTypeResolver (#6284)
1 parent 27b61b0 commit ef3a232

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
namespace Rector\Tests\Issues\AutoImport\Fixture;
4+
5+
use Symfony\Component\Console\Input\InputInterface;
6+
use Symfony\Component\Console\Output\OutputInterface;
7+
8+
class DoNotAddCastValidIntTypeFromName3 extends \Symfony\Component\Console\Command\Command
9+
{
10+
private ?OutputInterface $outputInterface = null;
11+
12+
protected function execute(InputInterface $input, OutputInterface $output): int
13+
{
14+
return \Symfony\Component\Console\Command\Command::SUCCESS;
15+
}
16+
}
17+
18+
?>
19+
-----
20+
<?php
21+
22+
namespace Rector\Tests\Issues\AutoImport\Fixture;
23+
24+
use Symfony\Component\Console\Command\Command;
25+
use Symfony\Component\Console\Input\InputInterface;
26+
use Symfony\Component\Console\Output\OutputInterface;
27+
28+
class DoNotAddCastValidIntTypeFromName3 extends Command
29+
{
30+
protected function execute(InputInterface $input, OutputInterface $output): int
31+
{
32+
return Command::SUCCESS;
33+
}
34+
}
35+
36+
?>

0 commit comments

Comments
 (0)