Skip to content

Commit

Permalink
Static closure should not use $this
Browse files Browse the repository at this point in the history
`$this` can not be used in static closures. Therefore the `static` keyword should be removed.
  • Loading branch information
windaishi authored Oct 13, 2020
1 parent 51fc453 commit 82c0018
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 82c0018

Please sign in to comment.