This commit is contained in:
Tomas Votruba 2018-04-28 19:08:19 +02:00
parent 56f46b0675
commit c39898855f
3 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ parameters:
# false positive
- '#Parameter \#1 \$methodCallNode of method Rector\\NodeAnalyzer\\MethodArgumentAnalyzer::isMethodSecondArgumentNull\(\) expects PhpParser\\Node\\Expr\\MethodCall, PhpParser\\Node given#'
- '#Parameter \#1 \$kernelClass of method Rector\\Bridge\\Symfony\\SymfonyKernelParameterGuard::(ensureKernelClassExists|ensureIsKernelInstance)\(\) expects string, string\|null given#'
# intentionally incorrect - part of the test
- '#Parameter \#2 \$codeSamples of class Rector\\RectorDefinition\\RectorDefinition constructor expects array<Rector\\RectorDefinition\\CodeSample>, array<int, stdClass> given#'

View File

@ -25,8 +25,10 @@ final class DefaultServiceTypeForNameProvider implements ServiceTypeForNameProvi
*/
private $symfonyKernelParameterGuard;
public function __construct(ParameterProvider $parameterProvider, SymfonyKernelParameterGuard $symfonyKernelParameterGuard)
{
public function __construct(
ParameterProvider $parameterProvider,
SymfonyKernelParameterGuard $symfonyKernelParameterGuard
) {
$this->parameterProvider = $parameterProvider;
$this->symfonyKernelParameterGuard = $symfonyKernelParameterGuard;
}

View File

@ -8,8 +8,6 @@ use Symfony\Component\HttpKernel\Kernel;
final class SymfonyKernelParameterGuard
{
public function ensureKernelClassIsValid(?string $kernelClass): void
{
$this->ensureHasValue($kernelClass);