1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-02 20:27:35 +02:00

Revert "PhpStan fixes (#363)"

This reverts commit 68f9d0981f194931e475e2c93730d8e8785c20e4.
This commit is contained in:
David Grudl
2020-05-07 21:42:36 +02:00
committed by GitHub
parent 1bdf6e93d0
commit dbbf0ca673
4 changed files with 1 additions and 12 deletions

View File

@@ -16,7 +16,6 @@
"require-dev": {
"tracy/tracy": "~2.2",
"nette/tester": "~2.0",
"nette/di": "^3.0",
"phpstan/phpstan": "^0.12"
},
"replace": {

View File

@@ -148,9 +148,6 @@ class MySqliDriver implements Dibi\Driver
}
/**
* @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)) {

View File

@@ -32,12 +32,6 @@ namespace Dibi;
* @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()
*/

View File

@@ -19,7 +19,7 @@ class Result implements IDataSource
{
use Strict;
/** @var ResultDriver|null */
/** @var ResultDriver */
private $driver;
/** @var array Translate table */
@@ -295,7 +295,6 @@ class Result implements IDataSource
} while ($row = $this->fetch());
unset($x);
/** @var mixed[] $data */
return $data;
}