mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-08 01:23:15 +02:00
add test case for #1708
This commit is contained in:
parent
0c31763c7d
commit
bd6d976313
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\TypeDeclaration\Tests\Rector\ClassMethod\ReturnTypeDeclarationRector\Fixture;
|
||||
|
||||
class ANewClass
|
||||
{
|
||||
public function getObject()
|
||||
{
|
||||
return new class() {};
|
||||
}
|
||||
}
|
@ -53,6 +53,8 @@ final class ReturnTypeDeclarationRectorTest extends AbstractRectorTestCase
|
||||
__DIR__ . '/Fixture/dunglas/BazTrait.php.inc',
|
||||
__DIR__ . '/Fixture/dunglas/Child.php.inc',
|
||||
__DIR__ . '/Fixture/dunglas/nullable_types.php.inc',
|
||||
// anonymous class
|
||||
__DIR__ . '/Fixture/a_new_class.php.inc',
|
||||
];
|
||||
|
||||
$this->doTestFiles($integrationFiles);
|
||||
|
Loading…
x
Reference in New Issue
Block a user