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
2121{
2222 use Nette \SmartObject;
2323
24- /** @var callable[] function ( Connection $connection): void; Occurs after connection is established */
24+ /** @var callable[]&(callable( Connection $connection): void)[] ; Occurs after connection is established */
2525 public $ onConnect ;
2626
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 */
2828 public $ onQuery ;
2929
3030 /** @var array */
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public static function detectType(string $type): string
184184
185185 /**
186186 * 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
188188 * @return int count of commands
189189 */
190190 public static function loadFromFile (Connection $ connection , string $ file , callable $ onProgress = null ): int
You can’t perform that action at this time.
0 commit comments