Add PHPStan Generic test too.

This commit is contained in:
Dorian Villet 2019-12-30 22:34:58 +01:00
parent 0a7485367e
commit 2c3724bf01
2 changed files with 16 additions and 2 deletions

View File

@ -2,8 +2,6 @@
namespace Rector\TypeDeclaration\Tests\Rector\FunctionLike\PropertyTypeDeclarationRector\Fixture;
use Doctrine\Common\Collections\ArrayCollection;
class PhpstanClassStringType
{
/**

View File

@ -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()]);
}
}