We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 4 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function getValidationRules(SmartCollectionInterface $attributes): array |
||
| 18 | { |
||
| 19 | return [ |
||
| 20 | function ($attribute, $value, $fail) use ($attributes) { |
||
| 21 | if ($attributes->hasAttribute('entity') && $attributes->getAttributeValue('entity')) { |
||
| 22 | if (! is_string($value)) { |
||
| 23 | $fail('The '.$attribute.' should be a valid relation type string.'); |
||
| 24 | } |
||
| 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