Skip to content

Commit 0dbc45a

Browse files
committed
Update
1 parent 2d9eb32 commit 0dbc45a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Command/CommandInterface.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,15 +770,16 @@ public function showDatabases(): array;
770770
public function setRawSql(string $sql): static;
771771

772772
/**
773-
* Sets a Closure (anonymous function) that's called when a database exception is thrown when executing the
774-
* command. The signature of the Closure should be:
773+
* Sets a Closure (anonymous function) which called when a database exception is thrown when executing the command.
774+
*
775+
* The signature of the Closure should be:
775776
*
776777
* ```php
777778
* use Yiisoft\Db\Exception\Exception;
778779
*
779780
* function (Exception $e, int $attempt): bool
780781
* {
781-
* // return true or false (whether to retry the command or rethrow $e)
782+
* // return true or false (whether to retry the command or throw $e)
782783
* }
783784
* ```
784785
*

0 commit comments

Comments
 (0)