mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-22 08:25:02 +02:00
cs fixes
This commit is contained in:
parent
56f46b0675
commit
c39898855f
@ -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#'
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -8,8 +8,6 @@ use Symfony\Component\HttpKernel\Kernel;
|
||||
|
||||
final class SymfonyKernelParameterGuard
|
||||
{
|
||||
|
||||
|
||||
public function ensureKernelClassIsValid(?string $kernelClass): void
|
||||
{
|
||||
$this->ensureHasValue($kernelClass);
|
||||
|
Loading…
x
Reference in New Issue
Block a user