| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | final class DbalDriver extends AbstractDriverMiddleware |
||
| 25 | { |
||
| 26 | |||
| 27 | public function __construct(DriverInterface $driver, private readonly LoggerInterface $logger) |
||
| 28 | { |
||
| 29 | parent::__construct($driver); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | */ |
||
| 35 | public function connect( |
||
| 36 | #[SensitiveParameter] |
||
| 37 | array $params, |
||
| 38 | ): Connection { |
||
| 39 | $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]); |
||
| 40 | |||
| 41 | return new Connection( |
||
| 42 | parent::connect($params), |
||
| 43 | $this->logger, |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array<string,mixed> $params Connection parameters |
||
| 49 | * |
||
| 50 | * @return array<string,mixed> |
||
| 51 | */ |
||
| 52 | private function maskPassword( |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
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