updated-packages
This commit is contained in:
@@ -5,11 +5,13 @@ namespace Doctrine\DBAL\Event;
|
||||
use Doctrine\DBAL\Platforms\AbstractPlatform;
|
||||
use Doctrine\DBAL\Schema\Column;
|
||||
use Doctrine\DBAL\Schema\Table;
|
||||
|
||||
use function array_merge;
|
||||
use function func_get_args;
|
||||
use function is_array;
|
||||
|
||||
/**
|
||||
* Event Arguments used when SQL queries for creating table columns are generated inside Doctrine\DBAL\Platform\AbstractPlatform.
|
||||
* Event Arguments used when SQL queries for creating table columns are generated inside {@link AbstractPlatform}.
|
||||
*/
|
||||
class SchemaCreateTableColumnEventArgs extends SchemaEventArgs
|
||||
{
|
||||
@@ -57,17 +59,15 @@ class SchemaCreateTableColumnEventArgs extends SchemaEventArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* Passing multiple SQL statements as an array is deprecated. Pass each statement as an individual argument instead.
|
||||
*
|
||||
* @param string|string[] $sql
|
||||
*
|
||||
* @return \Doctrine\DBAL\Event\SchemaCreateTableColumnEventArgs
|
||||
* @return SchemaCreateTableColumnEventArgs
|
||||
*/
|
||||
public function addSql($sql)
|
||||
{
|
||||
if (is_array($sql)) {
|
||||
$this->sql = array_merge($this->sql, $sql);
|
||||
} else {
|
||||
$this->sql[] = $sql;
|
||||
}
|
||||
$this->sql = array_merge($this->sql, is_array($sql) ? $sql : func_get_args());
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user