| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | class Connection extends PDOConnectionConfig |
||
| 28 | { |
||
| 29 | private string $dsn; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param array<string,mixed> $options |
||
| 33 | */ |
||
| 34 | public function __construct(string $dsn, ?string $username, ?string $password, array $options) |
||
| 35 | { |
||
| 36 | $this->dsn = $dsn; |
||
| 37 | parent::__construct($username, $password, $options); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getName(): string |
||
| 44 | { |
||
| 45 | return \substr($this->dsn, \strpos($this->dsn, ':')); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function getDsn(): string |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
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