Updated PHPStan to v0.11.3

parent 77ecc637
This diff is collapsed.
...@@ -4,7 +4,6 @@ namespace Doctrine\DBAL\Driver\SQLAnywhere; ...@@ -4,7 +4,6 @@ namespace Doctrine\DBAL\Driver\SQLAnywhere;
use Doctrine\DBAL\Driver\AbstractDriverException; use Doctrine\DBAL\Driver\AbstractDriverException;
use InvalidArgumentException; use InvalidArgumentException;
use function is_resource;
use function sasql_error; use function sasql_error;
use function sasql_errorcode; use function sasql_errorcode;
use function sasql_sqlstate; use function sasql_sqlstate;
...@@ -28,14 +27,6 @@ class SQLAnywhereException extends AbstractDriverException ...@@ -28,14 +27,6 @@ class SQLAnywhereException extends AbstractDriverException
*/ */
public static function fromSQLAnywhereError($conn = null, $stmt = null) public static function fromSQLAnywhereError($conn = null, $stmt = null)
{ {
if ($conn !== null && ! is_resource($conn)) {
throw new InvalidArgumentException('Invalid SQL Anywhere connection resource given: ' . $conn);
}
if ($stmt !== null && ! is_resource($stmt)) {
throw new InvalidArgumentException('Invalid SQL Anywhere statement resource given: ' . $stmt);
}
$state = $conn ? sasql_sqlstate($conn) : sasql_sqlstate(); $state = $conn ? sasql_sqlstate($conn) : sasql_sqlstate();
$code = null; $code = null;
$message = null; $message = null;
......
...@@ -5,7 +5,6 @@ namespace Doctrine\DBAL\Event; ...@@ -5,7 +5,6 @@ namespace Doctrine\DBAL\Event;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
use InvalidArgumentException; use InvalidArgumentException;
use function is_string;
/** /**
* Event Arguments used when the SQL query for dropping tables are generated inside Doctrine\DBAL\Platform\AbstractPlatform. * Event Arguments used when the SQL query for dropping tables are generated inside Doctrine\DBAL\Platform\AbstractPlatform.
...@@ -28,10 +27,6 @@ class SchemaDropTableEventArgs extends SchemaEventArgs ...@@ -28,10 +27,6 @@ class SchemaDropTableEventArgs extends SchemaEventArgs
*/ */
public function __construct($table, AbstractPlatform $platform) public function __construct($table, AbstractPlatform $platform)
{ {
if (! $table instanceof Table && ! is_string($table)) {
throw new InvalidArgumentException('SchemaDropTableEventArgs expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.');
}
$this->table = $table; $this->table = $table;
$this->platform = $platform; $this->platform = $platform;
} }
......
...@@ -576,7 +576,7 @@ class DrizzlePlatform extends AbstractPlatform ...@@ -576,7 +576,7 @@ class DrizzlePlatform extends AbstractPlatform
{ {
if (is_array($item)) { if (is_array($item)) {
foreach ($item as $key => $value) { foreach ($item as $key => $value) {
if (! is_bool($value) && ! is_numeric($item)) { if (! is_bool($value) && ! is_numeric($value)) {
continue; continue;
} }
......
...@@ -1399,7 +1399,7 @@ SQL ...@@ -1399,7 +1399,7 @@ SQL
{ {
if (is_array($item)) { if (is_array($item)) {
foreach ($item as $key => $value) { foreach ($item as $key => $value) {
if (! is_bool($value) && ! is_numeric($item)) { if (! is_bool($value) && ! is_numeric($value)) {
continue; continue;
} }
......
...@@ -947,9 +947,9 @@ abstract class AbstractSchemaManager ...@@ -947,9 +947,9 @@ abstract class AbstractSchemaManager
} }
/** /**
* @param mixed[] $user * @param string[] $user
* *
* @return mixed[] * @return string[]
*/ */
protected function _getPortableUserDefinition($user) protected function _getPortableUserDefinition($user)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment