From 82c00185606fae069a3787d355260aeae14e614e Mon Sep 17 00:00:00 2001 From: Manuel Kress <6232639+windaishi@users.noreply.github.com> Date: Tue, 13 Oct 2020 11:47:10 +0200 Subject: [PATCH] Static closure should not use $this `$this` can not be used in static closures. Therefore the `static` keyword should be removed. --- src/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); }