Skip to content

Commit 0119a35

Browse files
committed
[CodeQuality] Handle crash on no @Depends on AddParamTypeFromDependsRector
1 parent e093ed9 commit 0119a35

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Class_\AddParamTypeFromDependsRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
final class SkipNoDepends extends TestCase
8+
{
9+
public function test(): \stdClass
10+
{
11+
return new \stdClass();
12+
}
13+
14+
public function testNoDepends($value)
15+
{
16+
}
17+
}

0 commit comments

Comments
 (0)