1 | <?php |
||
2 | |||
3 | /** |
||
4 | * This file is part of slick/di package |
||
5 | * |
||
6 | * For the full copyright and license information, please view the LICENSE.md |
||
7 | * file that was distributed with this source code. |
||
8 | */ |
||
9 | |||
10 | namespace Slick\Di\Definition; |
||
11 | |||
12 | use Slick\Di\DefinitionInterface; |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | /** |
||
15 | * Value definition |
||
16 | * |
||
17 | * @package Slick\Di\Definition |
||
18 | * @author Filipe Silva <[email protected]> |
||
19 | */ |
||
20 | class Value extends AbstractDefinition implements DefinitionInterface |
||
0 ignored issues
–
show
The type
Slick\Di\Definition\AbstractDefinition 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @var mixed |
||
25 | */ |
||
26 | protected $data; |
||
27 | |||
28 | /** |
||
29 | * Value definition |
||
30 | * |
||
31 | * @param mixed $data |
||
32 | */ |
||
33 | public function __construct($data) |
||
34 | { |
||
35 | $this->data = $data; |
||
36 | } |
||
37 | 6 | ||
38 | /** |
||
39 | 6 | * Resolves the definition into a scalar or object |
|
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function resolve(): mixed |
||
44 | { |
||
45 | return $this->data; |
||
46 | } |
||
47 | } |
||
48 |
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