Issues (4)

src/Dto/ResolvedAttribute.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace RustamWin\Attributes\Dto;
6
7
use Reflector;
8
9
final class ResolvedAttribute
10
{
11
    /**
12
     * @template T instance of Reflector
13
     *
14
     * @param object $attribute
15
     * @param T $reflectionTarget
0 ignored issues
show
The type RustamWin\Attributes\Dto\T 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...
16
     */
17 2
    public function __construct(
18
        private object $attribute,
19
        private Reflector $reflectionTarget
20
    ) {
21
    }
22
23
    // Getters
24 2
    public function getAttribute(): object
25
    {
26 2
        return $this->attribute;
27
    }
28
29
    /**
30
     * @psalm-template T of Reflector
31
     *
32
     * @psalm-return T
33
     *
34
     * @return Reflector
35
     */
36 1
    public function getReflectionTarget(): Reflector
37
    {
38 1
        return $this->reflectionTarget;
39
    }
40
}
41