| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function __construct( $name, Container $container ) { |
||
| 40 | $this->container = $container; |
||
| 41 | parent::__construct( $name ); |
||
| 42 | |||
| 43 | // Initiates logging |
||
| 44 | $this->log = $this->container['main_logger']; |
||
| 45 | if ( ! $this->log instanceof Logger ) { |
||
| 46 | throw new \InvalidArgumentException( "Container main_logger entry must be Logger type" ); |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->tools = $this->container['tools']; |
||
| 50 | if ( ! $this->tools instanceof BackupTools ) { |
||
| 51 | throw new \InvalidArgumentException( "Container tools entry must be BackupTool type" ); |
||
| 52 | } |
||
| 54 | } |
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