updated-packages
This commit is contained in:
@@ -5,10 +5,9 @@ namespace Doctrine\DBAL\Event;
|
||||
use Doctrine\DBAL\Platforms\AbstractPlatform;
|
||||
use Doctrine\DBAL\Schema\Table;
|
||||
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 {@link AbstractPlatform}.
|
||||
*/
|
||||
class SchemaDropTableEventArgs extends SchemaEventArgs
|
||||
{
|
||||
@@ -19,7 +18,7 @@ class SchemaDropTableEventArgs extends SchemaEventArgs
|
||||
private $platform;
|
||||
|
||||
/** @var string|null */
|
||||
private $sql = null;
|
||||
private $sql;
|
||||
|
||||
/**
|
||||
* @param string|Table $table
|
||||
@@ -28,10 +27,6 @@ class SchemaDropTableEventArgs extends SchemaEventArgs
|
||||
*/
|
||||
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->platform = $platform;
|
||||
}
|
||||
@@ -55,7 +50,7 @@ class SchemaDropTableEventArgs extends SchemaEventArgs
|
||||
/**
|
||||
* @param string $sql
|
||||
*
|
||||
* @return \Doctrine\DBAL\Event\SchemaDropTableEventArgs
|
||||
* @return SchemaDropTableEventArgs
|
||||
*/
|
||||
public function setSql($sql)
|
||||
{
|
||||
|
Reference in New Issue
Block a user