mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-12 11:30:31 +01:00
21 lines
724 B
PHP
21 lines
724 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Generic\Rector\ClassMethod\AddReturnTypeDeclarationRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->set(AddReturnTypeDeclarationRector::class)
|
|
->call('configure', [[
|
|
AddReturnTypeDeclarationRector::TYPEHINT_FOR_METHOD_BY_CLASS => [
|
|
'PhpSpec\ObjectBehavior' => [
|
|
# @see http://www.phpspec.net/en/stable/manual/upgrading-to-phpspec-4.html
|
|
'getMatchers' => 'array',
|
|
],
|
|
],
|
|
]]);
|
|
};
|