2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-02-02 09:10:44 +00:00
|
|
|
namespace RectorPrefix20220202;
|
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-06-02 10:21:10 +00:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (\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());
|
2021-11-30 13:55:08 +00:00
|
|
|
$services->set(\Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector::class)->configure([new \Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration('PhpSpec\\ObjectBehavior', 'getMatchers', $arrayType)]);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|