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/Components/ArrayObj.php | |
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/Components/ArrayObj.php')
-rw-r--r-- | src/Components/ArrayObj.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Components/ArrayObj.php b/src/Components/ArrayObj.php index 7748be9..769ce37 100644 --- a/src/Components/ArrayObj.php +++ b/src/Components/ArrayObj.php @@ -25,14 +25,14 @@ class ArrayObj extends Component * * @var array */ - public $raw = []; + public $raw = array(); /** * The array that contains the processed value of each token. * * @var array */ - public $values = []; + public $values = array(); /** * Constructor. @@ -40,7 +40,7 @@ class ArrayObj extends Component * @param array $raw the unprocessed values * @param array $values the processed values */ - public function __construct(array $raw = [], array $values = []) + public function __construct(array $raw = array(), array $values = array()) { $this->raw = $raw; $this->values = $values; @@ -53,9 +53,9 @@ class ArrayObj extends Component * * @return ArrayObj|Component[] */ - public static function parse(Parser $parser, TokensList $list, array $options = []) + public static function parse(Parser $parser, TokensList $list, array $options = array()) { - $ret = empty($options['type']) ? new self() : []; + $ret = empty($options['type']) ? new self() : array(); /** * The last raw expression. @@ -176,7 +176,7 @@ class ArrayObj extends Component * * @return string */ - public static function build($component, array $options = []) + public static function build($component, array $options = array()) { if (is_array($component)) { return implode(', ', $component); |