mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
Add PHPStan Generic test too.
This commit is contained in:
parent
0a7485367e
commit
2c3724bf01
@ -2,8 +2,6 @@
|
||||
|
||||
namespace Rector\TypeDeclaration\Tests\Rector\FunctionLike\PropertyTypeDeclarationRector\Fixture;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
|
||||
class PhpstanClassStringType
|
||||
{
|
||||
/**
|
||||
|
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\TypeDeclaration\Tests\Rector\FunctionLike\PropertyTypeDeclarationRector\Fixture;
|
||||
|
||||
class PhpstanGenericsType
|
||||
{
|
||||
/**
|
||||
* @var \ArrayIterator<self>
|
||||
*/
|
||||
private $twoOfMe;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->twoOfMe = new \ArrayIterator([new self(), new self()]);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user