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 @@ -22,10 +22,10 @@ class Connection
2222{
2323 use Nette \SmartObject;
2424
25- /** @var callable[]&(callable(Connection $connection ): void)[]; Occurs after connection is established */
25+ /** @var array< callable(self ): void> Occurs after connection is established */
2626 public $ onConnect = [];
2727
28- /** @var callable[]&(callable(Connection $connection , ResultSet|DriverException $result ): void)[]; Occurs after query is executed */
28+ /** @var array< callable(self , ResultSet|DriverException): void> Occurs after query is executed */
2929 public $ onQuery = [];
3030
3131 /** @var array */
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ public static function detectType(string $type): string
193193
194194 /**
195195 * Import SQL dump from file - extremely fast.
196- * @param callable&callable (int $count , ?float $percent ): void $onProgress
196+ * @param array< callable(int, ?float): void> $onProgress
197197 * @return int count of commands
198198 */
199199 public static function loadFromFile (Connection $ connection , string $ file , callable $ onProgress = null ): int
You can’t perform that action at this time.
0 commit comments