Skip to content

Commit 0163adc

Browse files
committed
Changed returntype of Database::transaction to mixed to reflect that the return of a transaction is returned by this function-call
1 parent 4fd4298 commit 0163adc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function transactionRollback();
101101
/**
102102
* @param int|callable $tries
103103
* @param callable|null $callback
104-
* @return $this
104+
* @return mixed
105105
* @throws \Exception
106106
*/
107107
public function transaction($tries = 1, $callback = null);

src/Databases/MySQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function transactionRollback() {
238238
/**
239239
* @param int|callable $tries
240240
* @param callable|null $callback
241-
* @return $this
241+
* @return mixed
242242
* @throws \Exception
243243
*/
244244
public function transaction($tries = 1, $callback = null) {

0 commit comments

Comments
 (0)