We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public static function getAttributeValidationRules(): array |
||
23 | { |
||
24 | return [ |
||
25 | 'model' => [ |
||
26 | 'required', |
||
27 | 'string', |
||
28 | function ($attribute, $value, $fail) { |
||
29 | if (! is_a($value, 'Illuminate\Database\Eloquent\Model', true)) { |
||
30 | $fail('The '.$attribute.' should be a valid class that extends Illuminate\Database\Eloquent\Model .'); |
||
31 | } |
||
32 | }, |
||
33 | ], |
||
34 | 'attribute' => ['required', 'string'], |
||
35 | EntityAttribute::class, |
||
36 | 'value' => ['nullable', 'integer'], |
||
37 | ]; |
||
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