mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 04:10:51 +00:00
29e9bf5610
Co-authored-by: GitHub Action <action@github.com>
35 lines
720 B
PHP
35 lines
720 B
PHP
<?php
|
|
|
|
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector\Fixture;
|
|
|
|
use Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector\Source\NestedGetData;
|
|
|
|
final class AddFromChild
|
|
{
|
|
public function getData(NestedGetData $nested)
|
|
{
|
|
return $nested->getData();
|
|
}
|
|
}
|
|
|
|
?>
|
|
-----
|
|
<?php
|
|
|
|
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector\Fixture;
|
|
|
|
use Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector\Source\NestedGetData;
|
|
|
|
final class AddFromChild
|
|
{
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getData(NestedGetData $nested)
|
|
{
|
|
return $nested->getData();
|
|
}
|
|
}
|
|
|
|
?>
|