Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Include MockObject&ClassName docblock with Intersec…
…tionTypeNode on TypedPropertyFromStrictSetUpRector (#5655) * [TypeDeclaration] Include MockObject&ClassName docblock with IntersectionTypeNode on TypedPropertyFromStrictSetUpRector * update * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
8038ee1
commit f9b3312
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...ation/Rector/Property/TypedPropertyFromStrictSetUpRector/Fixture/include_mock_doc.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,41 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
final class IncludeMockDoc extends TestCase | ||
{ | ||
/** @var \DateTime */ | ||
private $value; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->value = $this->createMock(\DateTime::class); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
final class IncludeMockDoc extends TestCase | ||
{ | ||
/** @var (\PHPUnit\Framework\MockObject\MockObject & \DateTime) */ | ||
private \PHPUnit\Framework\MockObject\MockObject $value; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->value = $this->createMock(\DateTime::class); | ||
} | ||
} | ||
|
||
?> |
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