| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class DriverConfigBuilder implements IDriverConfigBuilder |
||
| 18 | { |
||
| 19 | private ?IDriverMessages $driverMessages = null; |
||
| 20 | private ?DriverMode $driverMode = null; |
||
| 21 | |||
| 22 | public function build(): IDriverConfig |
||
| 23 | { |
||
| 24 | $this->validate(); |
||
| 25 | |||
| 26 | return new DriverConfig( |
||
| 27 | driverMessages: $this->driverMessages, |
||
| 28 | driverMode: $this->driverMode, |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @throws LogicException |
||
| 34 | */ |
||
| 35 | private function validate(): void |
||
| 41 | }; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function withDriverMessages(IDriverMessages $driverMessages): IDriverConfigBuilder |
||
| 49 | } |
||
| 50 | |||
| 51 | public function withDriverMode(DriverMode $driverMode): IDriverConfigBuilder |
||
| 58 |
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