| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 25 | 10 | public function fromFlags(int $flags): Visibility |
|
| 26 | { |
||
| 27 | return match (true) { |
||
| 28 | 10 | (bool) ($flags & Class_::MODIFIER_PUBLIC) => Visibility::PUBLIC, |
|
| 29 | 9 | (bool) ($flags & Class_::MODIFIER_PROTECTED) => Visibility::PROTECTED, |
|
| 30 | 9 | (bool) ($flags & Class_::MODIFIER_PRIVATE) => Visibility::PRIVATE, |
|
| 31 | 10 | default => throw UnknownVisibilityFlag::withValue($flags) |
|
| 32 | }; |
||
| 35 |
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