diff --git a/src/Query.php b/src/Query.php index ad16a93..109ada1 100644 --- a/src/Query.php +++ b/src/Query.php @@ -28,7 +28,7 @@ public function execute(string $table, array $dataset, array $types = []): int public function transactional(string $table, array $dataset, array $types = []): int { - return $this->connection->transactional(static function () use ($table, $dataset, $types): int { + return $this->connection->transactional(function () use ($table, $dataset, $types): int { return $this->execute($table, $dataset, $types); }); }