File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ class Connection
21
21
{
22
22
use Nette \SmartObject;
23
23
24
- /** @var callable[] function ( Connection $connection): void; Occurs after connection is established */
24
+ /** @var callable[]&(callable( Connection $connection): void)[] ; Occurs after connection is established */
25
25
public $ onConnect ;
26
26
27
- /** @var callable[] function ( Connection $connection, ResultSet|DriverException $result): void; Occurs after query is executed */
27
+ /** @var callable[]&(callable( Connection $connection, ResultSet|DriverException $result): void)[] ; Occurs after query is executed */
28
28
public $ onQuery ;
29
29
30
30
/** @var array */
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public static function detectType(string $type): string
184
184
185
185
/**
186
186
* Import SQL dump from file - extremely fast.
187
- * @param callable $onProgress function (int $count, ?float $percent): void
187
+ * @param callable&callable (int $count, ?float $percent): void $onProgress
188
188
* @return int count of commands
189
189
*/
190
190
public static function loadFromFile (Connection $ connection , string $ file , callable $ onProgress = null ): int
You can’t perform that action at this time.
0 commit comments