| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function register(): array |
||
| 12 | { |
||
| 13 | return [ |
||
| 14 | 'database' => function (ContainerInterface $container) { |
||
| 15 | $database = $container->get('config.database'); |
||
| 16 | $name = $database['name']; |
||
| 17 | $connection = $database['connections'][$name]; |
||
| 18 | return new ExtendedPdo( |
||
| 19 | $connection['database_type'].':host='.$connection['server'].';dbname='.$connection['database_name'], |
||
| 20 | $connection['username'], |
||
| 21 | $connection['password'], |
||
| 22 | [], // driver attributes/options as key-value pairs |
||
| 23 | [] // queries to execute after connection |
||
| 24 | ); |
||
| 29 |
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