Skip to content

Commit 41eb2f3

Browse files
RetryConnection: Make class compatible with ipl\Sql\Connection
1 parent 892cfc0 commit 41eb2f3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

library/Reporting/RetryConnection.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55
namespace Icinga\Module\Reporting;
66

77
use ipl\Sql\Connection;
8+
use ipl\Sql\Delete;
9+
use ipl\Sql\Insert;
10+
use ipl\Sql\Select;
11+
use ipl\Sql\Update;
12+
use PDOStatement;
813

914
class RetryConnection extends Connection
1015
{
11-
public function prepexec($stmt, $values = null)
12-
{
16+
public function prepexec(
17+
Delete|Insert|Select|Update|string $stmt,
18+
string|array|null $values = null
19+
): false|PDOStatement {
1320
try {
1421
$sth = parent::prepexec($stmt, $values);
1522
} catch (\Exception $e) {

0 commit comments

Comments
 (0)