Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function __invoke(string $sql, array $params): array |
||
31 | { |
||
32 | $pdoStatement = $this->pdo->perform($sql, $params); |
||
33 | |||
34 | return $pdoStatement->fetchAll(PDO::FETCH_FUNC, /** @param list<mixed> $args */function (...$args) { |
||
35 | /** @psalm-suppress MixedMethodCall */ |
||
36 | return new $this->entity(...$args); |
||
37 | }); |
||
40 |