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