Skip to content

Commit

Permalink
Merge pull request #1 from windaishi/patch-1
Browse files Browse the repository at this point in the history
Static closure should not use $this
  • Loading branch information
franzose authored Oct 13, 2020
2 parents 51fc453 + 82c0018 commit 37ad988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit 37ad988

Please sign in to comment.