Skip to content

Commit d19f780

Browse files
remove dummy classes
1 parent baa7e72 commit d19f780

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

rules-tests/TypeDeclaration/Rector/ClassMethod/NarrowObjectReturnTypeRector/Fixture/skip_multiple_return_types.php.inc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,15 @@
22

33
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector\Fixture;
44

5-
class Product
6-
{
7-
}
8-
9-
class Service
10-
{
11-
}
12-
135
final class MixedFactory
146
{
157
public function create(): object
168
{
179
if (rand(0, 1)) {
18-
return new Product();
10+
return new \DateTime();
1911
}
2012

21-
return new Service();
13+
return new \stdClass();
2214
}
2315
}
2416

0 commit comments

Comments
 (0)