diff options
author | William Desportes <williamdes@wdes.fr> | 2019-05-28 13:00:00 +0200 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-05-28 15:08:32 +0200 |
commit | 5d5089a259d0195c4a1e4aa3588c31c839954067 (patch) | |
tree | 645dab617127089baadcf5e3eed95e0f21a5b46c /src/Statements | |
parent | 724b2330dc4cb6247aa1649cc1f49fce496f2e3c (diff) | |
download | sql-parser-5d5089a259d0195c4a1e4aa3588c31c839954067.zip sql-parser-5d5089a259d0195c4a1e4aa3588c31c839954067.tar.gz sql-parser-5d5089a259d0195c4a1e4aa3588c31c839954067.tar.bz2 |
Revert array syntax
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'src/Statements')
-rw-r--r-- | src/Statements/AlterStatement.php | 6 | ||||
-rw-r--r-- | src/Statements/CreateStatement.php | 2 | ||||
-rw-r--r-- | src/Statements/LockStatement.php | 2 | ||||
-rw-r--r-- | src/Statements/NotImplementedStatement.php | 2 | ||||
-rw-r--r-- | src/Statements/SelectStatement.php | 6 |
5 files changed, 9 insertions, 9 deletions
diff --git a/src/Statements/AlterStatement.php b/src/Statements/AlterStatement.php index 0620936..0991532 100644 --- a/src/Statements/AlterStatement.php +++ b/src/Statements/AlterStatement.php @@ -35,7 +35,7 @@ class AlterStatement extends Statement * * @var AlterOperation[] */ - public $altered = []; + public $altered = array(); /** * Options of this statement. @@ -114,7 +114,7 @@ class AlterStatement extends Statement } if ($state === 0) { - $options = []; + $options = array(); if ($this->options->has('DATABASE')) { $options = AlterOperation::$DB_OPTIONS; } elseif ($this->options->has('TABLE')) { @@ -138,7 +138,7 @@ class AlterStatement extends Statement */ public function build() { - $tmp = []; + $tmp = array(); foreach ($this->altered as $altered) { $tmp[] = $altered::build($altered); } diff --git a/src/Statements/CreateStatement.php b/src/Statements/CreateStatement.php index ffa08bc..3d019ef 100644 --- a/src/Statements/CreateStatement.php +++ b/src/Statements/CreateStatement.php @@ -367,7 +367,7 @@ class CreateStatement extends Statement * * @var Token[]|string */ - public $body = []; + public $body = array(); /** * @return string diff --git a/src/Statements/LockStatement.php b/src/Statements/LockStatement.php index 0166dca..19e6eb4 100644 --- a/src/Statements/LockStatement.php +++ b/src/Statements/LockStatement.php @@ -26,7 +26,7 @@ class LockStatement extends Statement * * @var LockExpression[] */ - public $locked = []; + public $locked = array(); /** * Whether it's a LOCK statement diff --git a/src/Statements/NotImplementedStatement.php b/src/Statements/NotImplementedStatement.php index 254ca15..67c1bea 100644 --- a/src/Statements/NotImplementedStatement.php +++ b/src/Statements/NotImplementedStatement.php @@ -27,7 +27,7 @@ class NotImplementedStatement extends Statement * * @var Token[] */ - public $unknown = []; + public $unknown = array(); /** * @return string diff --git a/src/Statements/SelectStatement.php b/src/Statements/SelectStatement.php index a770227..a206b54 100644 --- a/src/Statements/SelectStatement.php +++ b/src/Statements/SelectStatement.php @@ -226,14 +226,14 @@ class SelectStatement extends Statement * * @var Expression[] */ - public $expr = []; + public $expr = array(); /** * Tables used as sources for this statement. * * @var Expression[] */ - public $from = []; + public $from = array(); /** * Index hints @@ -310,7 +310,7 @@ class SelectStatement extends Statement * * @var SelectStatement[] */ - public $union = []; + public $union = array(); /** * The end options of this query. |