Issues (12)

src/Config/ConfigStrategy.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SavinMikhail\AddNamedArgumentsRector\Config;
6
7
use PhpParser\Node\Expr\FuncCall;
8
use PhpParser\Node\Expr\MethodCall;
9
use PhpParser\Node\Expr\New_;
10
use PhpParser\Node\Expr\StaticCall;
11
use PHPStan\Reflection\ClassReflection;
0 ignored issues
show
The type PHPStan\Reflection\ClassReflection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use PHPStan\Reflection\ExtendedParameterReflection;
0 ignored issues
show
The type PHPStan\Reflection\ExtendedParameterReflection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
14
interface ConfigStrategy
15
{
16
    /**
17
     * @param ExtendedParameterReflection[] $parameters
18
     */
19
    public static function shouldApply(
20
        FuncCall|StaticCall|MethodCall|New_ $node,
21
        array $parameters,
22
        ?ClassReflection $classReflection = null,
23
    ): bool;
24
}
25