bearsunday /
BEAR.Resource
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Resource\Annotation; |
||
| 6 | |||
| 7 | // phpcs:disable SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse |
||
| 8 | use Attribute; |
||
| 9 | use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor; |
||
|
0 ignored issues
–
show
|
|||
| 10 | use Ray\Di\Di\Qualifier; |
||
| 11 | |||
| 12 | // phpcs:enable |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @Annotation |
||
| 16 | * @Target("METHOD") |
||
| 17 | * @NamedArgumentConstructor |
||
| 18 | */ |
||
| 19 | #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)] |
||
| 20 | #[Qualifier] |
||
| 21 | final class ResourceParam implements RequestParamInterface |
||
| 22 | { |
||
| 23 | /** @var string */ |
||
| 24 | public $param; |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | public $uri; |
||
| 28 | |||
| 29 | /** @var bool */ |
||
| 30 | public $templated; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param array{uri?: string, param?: string, templated?: bool} $values |
||
| 34 | * |
||
| 35 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) $templated is configuration flag for URI template expansion |
||
| 36 | */ |
||
| 37 | public function __construct(array $values = [], string $uri = '', string $param = '', bool $templated = false) |
||
| 38 | { |
||
| 39 | $this->uri = $values['uri'] ?? $uri; |
||
| 40 | $this->param = $values['param'] ?? $param; |
||
| 41 | $this->templated = $values['templated'] ?? $templated; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths