Skip to content

Commit

Permalink
Revert "PhpStan fixes (#363)"
Browse files Browse the repository at this point in the history
This reverts commit 68f9d09.
  • Loading branch information
dg committed May 7, 2020
1 parent 1bdf6e9 commit dbbf0ca
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -16,7 +16,6 @@
"require-dev": {
"tracy/tracy": "~2.2",
"nette/tester": "~2.0",
"nette/di": "^3.0",
"phpstan/phpstan": "^0.12"
},
"replace": {
Expand Down
3 changes: 0 additions & 3 deletions src/Dibi/Drivers/MySqliDriver.php
Expand Up @@ -148,9 +148,6 @@ public function query(string $sql): ?Dibi\ResultDriver
}


/**
* @param int|string $code
*/
public static function createException(string $message, $code, string $sql): Dibi\DriverException
{
if (in_array($code, [1216, 1217, 1451, 1452, 1701], true)) {
Expand Down
6 changes: 0 additions & 6 deletions src/Dibi/Fluent.php
Expand Up @@ -32,12 +32,6 @@
* @method Fluent and(...$cond)
* @method Fluent or(...$cond)
* @method Fluent using(...$cond)
* @method Fluent update(...$cond)
* @method Fluent insert(...$cond)
* @method Fluent delete(...$cond)
* @method Fluent into(...$cond)
* @method Fluent values(...$cond)
* @method Fluent set(...$args)
* @method Fluent asc()
* @method Fluent desc()
*/
Expand Down
3 changes: 1 addition & 2 deletions src/Dibi/Result.php
Expand Up @@ -19,7 +19,7 @@ class Result implements IDataSource
{
use Strict;

/** @var ResultDriver|null */
/** @var ResultDriver */
private $driver;

/** @var array Translate table */
Expand Down Expand Up @@ -295,7 +295,6 @@ final public function fetchAssoc(string $assoc): array
} while ($row = $this->fetch());

unset($x);
/** @var mixed[] $data */
return $data;
}

Expand Down

0 comments on commit dbbf0ca

Please sign in to comment.