1 | <?php declare(strict_types=1); |
||
2 | /** |
||
3 | * This source file is subject to the license that is bundled with this package in the file LICENSE. |
||
4 | */ |
||
5 | |||
6 | namespace PhUml\Code\Properties; |
||
7 | |||
8 | use PhUml\Code\Modifiers\CanBeStatic; |
||
9 | use PhUml\Code\Modifiers\HasVisibility; |
||
10 | use PhUml\Code\Modifiers\Visibility; |
||
0 ignored issues
–
show
|
|||
11 | use PhUml\Code\Modifiers\WithStaticModifier; |
||
12 | use PhUml\Code\Modifiers\WithVisibility; |
||
13 | use PhUml\Code\Name; |
||
14 | use PhUml\Code\Variables\HasType; |
||
15 | use PhUml\Code\Variables\Variable; |
||
16 | use PhUml\Code\Variables\WithVariable; |
||
17 | use Stringable; |
||
18 | |||
19 | /** |
||
20 | * It represents an instance variable |
||
21 | */ |
||
22 | final class Property implements HasType, HasVisibility, CanBeStatic, Stringable |
||
23 | { |
||
24 | use WithVisibility; |
||
25 | use WithStaticModifier; |
||
26 | use WithVariable; |
||
27 | |||
28 | 51 | public function __construct(Variable $variable, Visibility $visibility, bool $isStatic = false) |
|
29 | { |
||
30 | 51 | $this->variable = $variable; |
|
0 ignored issues
–
show
|
|||
31 | 51 | $this->visibility = $visibility; |
|
0 ignored issues
–
show
|
|||
32 | 51 | $this->isStatic = $isStatic; |
|
33 | } |
||
34 | |||
35 | /** @return Name[] */ |
||
36 | 14 | public function references(): array |
|
37 | { |
||
38 | 14 | return $this->variable->references(); |
|
39 | } |
||
40 | |||
41 | 14 | public function __toString(): string |
|
42 | { |
||
43 | 14 | return sprintf( |
|
44 | '%s%s', |
||
45 | 14 | $this->visibility->value, |
|
46 | 14 | $this->variable |
|
47 | ); |
||
48 | } |
||
49 | } |
||
50 |
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