-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Clean up get ClassReflection on loop on TypedProper…
…tyFromCreateMockAssignRector (#6181) * [TypeDeclaration] Clean up get ClassReflection on loop on rules * clean up unnecessary ClassReflection * clean up * unrelated change * clean up only on TypedPropertyFromCreateMockAssignRector * add test for assign with non-mock object type
- Loading branch information
1 parent
fa84ab5
commit 1aef755
Showing
2 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
.../Class_/TypedPropertyFromCreateMockAssignRector/Fixture/skip_non_mock_object_type.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Class_\TypedPropertyFromCreateMockAssignRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class SkipNonMockObjectType extends TestCase | ||
{ | ||
public $someProperty; | ||
|
||
protected function setUp(): void | ||
{ | ||
$this->someProperty = 'some property value'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters