| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Ray\AuraSqlModule; |
||
| 6 | |||
| 7 | use Override; |
||
| 8 | use Ray\AuraSqlModule\Pagerfanta\AuraSqlPagerModule; |
||
| 9 | use Ray\Di\AbstractModule; |
||
| 10 | |||
| 11 | use function preg_match; |
||
| 12 | |||
| 13 | final class AuraSqlBaseModule extends AbstractModule |
||
| 14 | { |
||
| 15 | public function __construct(private readonly string $dsn, ?AbstractModule $module = null) |
||
| 16 | { |
||
| 17 | parent::__construct($module); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritDoc} |
||
| 22 | */ |
||
| 23 | #[Override] |
||
| 24 | protected function configure(): void |
||
| 25 | { |
||
| 26 | // @Transactional |
||
| 27 | $this->install(new TransactionalModule()); |
||
| 28 | $this->install(new AuraSqlPagerModule()); |
||
| 29 | preg_match(AuraSqlModule::PARSE_PDO_DSN_REGEX, $this->dsn, $parts); |
||
|
0 ignored issues
–
show
|
|||
| 30 | $dbType = $parts[1] ?? ''; |
||
| 31 | $this->install(new AuraSqlQueryModule($dbType)); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
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