Skip to content
Permalink
Browse files

Use phpstan callable format (#220)

  • Loading branch information...
adaamz authored and dg committed Apr 8, 2019
1 parent 19f013f commit d81e35ec19677cdb228e2f4405d093ff42cc1952
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Database/Connection.php
  2. +1 −1 src/Database/Helpers.php
@@ -21,10 +21,10 @@ class Connection
{
use Nette\SmartObject;
/** @var callable[] function (Connection $connection): void; Occurs after connection is established */
/** @var callable[]&(callable(Connection $connection): void)[]; Occurs after connection is established */
public $onConnect;
/** @var callable[] function (Connection $connection, ResultSet|DriverException $result): void; Occurs after query is executed */
/** @var callable[]&(callable(Connection $connection, ResultSet|DriverException $result): void)[]; Occurs after query is executed */
public $onQuery;
/** @var array */
@@ -184,7 +184,7 @@ public static function detectType(string $type): string
/**
* Import SQL dump from file - extremely fast.
* @param callable $onProgress function (int $count, ?float $percent): void
* @param callable&callable(int $count, ?float $percent): void $onProgress
* @return int count of commands
*/
public static function loadFromFile(Connection $connection, string $file, callable $onProgress = null): int

0 comments on commit d81e35e

Please sign in to comment.
You can’t perform that action at this time.