Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | private function validateAdapter(string $alias, array $config) |
||
26 | { |
||
27 | $adapter = $config['adapter']['__class'] ?? false; |
||
28 | if (!$adapter) { |
||
29 | throw new \InvalidArgumentException("Adapter is not defined in the '$alias' storage config."); |
||
30 | } |
||
31 | if (!is_subclass_of($adapter, FilesystemAdapter::class)) { |
||
32 | throw new \InvalidArgumentException("Adapter must implements FilesystemAdapterInterface."); |
||
33 | } |
||
36 |
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