Skip to content

Commit 6a97474

Browse files
move to source
1 parent e8b298a commit 6a97474

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

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

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

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

5-
final class FinalProduct
6-
{
7-
}
8-
95
final class FinalProductFactory
106
{
11-
public function create(): FinalProduct
7+
public function create(): \DateTime
128
{
13-
return new FinalProduct();
9+
return new \DateTime();
1410
}
1511
}
1612

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

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

5+
use Rector\Tests\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector\Source\AbstractTalkFactory;
56
use Rector\Tests\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector\Source\Talk;
67
use Rector\Tests\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector\Source\ConferenceTalkExtended;
78

8-
abstract class AbstractTalkFactory
9-
{
10-
abstract public function build(): Talk;
11-
}
12-
139
final class ConcreteTalkFactory extends AbstractTalkFactory
1410
{
1511
public function build(): Talk
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector\Source;
6+
7+
abstract class AbstractTalkFactory
8+
{
9+
abstract public function build(): Talk;
10+
}

0 commit comments

Comments
 (0)