Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | #[Override] |
||
32 | public function lastInsertId(string|null $table = null, string|null $idField = null): string |
||
33 | { |
||
34 | $name = null; |
||
35 | |||
36 | if ($table !== null && $idField !== null) { |
||
37 | $name = "{$table}_{$idField}_seq"; |
||
38 | } |
||
39 | |||
40 | /** @var non-empty-string|false $lastInsertId */ |
||
41 | $lastInsertId = $this->pdo->lastInsertId($name); |
||
42 | |||
43 | return is_string($lastInsertId) |
||
44 | ? $lastInsertId |
||
45 | : throw new RuntimeException('No last insert id found'); |
||
46 | } |
||
48 |
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