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:
@@ -16,7 +16,6 @@
|
||||
"require-dev": {
|
||||
"tracy/tracy": "~2.2",
|
||||
"nette/tester": "~2.0",
|
||||
"nette/di": "^3.0",
|
||||
"phpstan/phpstan": "^0.12"
|
||||
},
|
||||
"replace": {
|
||||
|
@@ -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)) {
|
||||
|
@@ -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()
|
||||
*/
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user