Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class ClassExistsRule implements Rule |
||
8 | { |
||
9 | private string $message; |
||
10 | |||
11 | public function passes($attribute, $value): bool |
||
12 | { |
||
13 | if (!class_exists($value)) { |
||
14 | $this->message = "The class of {$attribute} field does not exists."; |
||
15 | |||
16 | return false; |
||
17 | } |
||
18 | |||
19 | return true; |
||
20 | } |
||
21 | |||
22 | public function message(): string |
||
25 | } |
||
26 | } |
||
27 |
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