2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2021-05-13 00:24:58 +00:00
|
|
|
namespace RectorPrefix20210513;
|
2020-07-18 18:57:24 +02:00
|
|
|
|
2020-10-30 12:58:35 +01:00
|
|
|
use PHPStan\Type\ArrayType;
|
|
|
|
use PHPStan\Type\MixedType;
|
|
|
|
use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector;
|
|
|
|
use Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration;
|
2021-05-13 23:06:45 +00:00
|
|
|
use RectorPrefix20210513\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
2020-11-26 17:44:27 +01:00
|
|
|
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
2021-05-13 23:06:45 +00:00
|
|
|
return static function (\RectorPrefix20210513\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
2020-07-18 18:57:24 +02:00
|
|
|
$services = $containerConfigurator->services();
|
2021-05-10 22:23:08 +00:00
|
|
|
$arrayType = new \PHPStan\Type\ArrayType(new \PHPStan\Type\MixedType(), new \PHPStan\Type\MixedType());
|
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector::class)->call('configure', [[\Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector::METHOD_RETURN_TYPES => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration('PhpSpec\\ObjectBehavior', 'getMatchers', $arrayType)])]]);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|