summaryrefslogtreecommitdiffstats
path: root/src/Components/IndexHint.php
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2019-05-28 13:00:00 +0200
committerWilliam Desportes <williamdes@wdes.fr>2019-05-28 15:08:32 +0200
commit5d5089a259d0195c4a1e4aa3588c31c839954067 (patch)
tree645dab617127089baadcf5e3eed95e0f21a5b46c /src/Components/IndexHint.php
parent724b2330dc4cb6247aa1649cc1f49fce496f2e3c (diff)
downloadsql-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/IndexHint.php')
-rw-r--r--src/Components/IndexHint.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Components/IndexHint.php b/src/Components/IndexHint.php
index a0cb0f1..9284945 100644
--- a/src/Components/IndexHint.php
+++ b/src/Components/IndexHint.php
@@ -46,7 +46,7 @@ class IndexHint extends Component
*
* @var array
*/
- public $indexes = [];
+ public $indexes = array();
/**
* Constructor.
@@ -56,7 +56,7 @@ class IndexHint extends Component
* @param string $for the clause for which this hint is (JOIN/ORDER BY/GROUP BY)
* @param string $indexes List of indexes in this hint
*/
- public function __construct(string $type = null, string $indexOrKey = null, string $for = null, array $indexes = [])
+ public function __construct(string $type = null, string $indexOrKey = null, string $for = null, array $indexes = array())
{
$this->type = $type;
$this->indexOrKey = $indexOrKey;
@@ -71,9 +71,9 @@ class IndexHint extends Component
*
* @return IndexHint|Component[]
*/
- public static function parse(Parser $parser, TokensList $list, array $options = [])
+ public static function parse(Parser $parser, TokensList $list, array $options = array())
{
- $ret = [];
+ $ret = array();
$expr = new self();
$expr->type = isset($options['type']) ? $options['type'] : null;
/**
@@ -178,7 +178,7 @@ class IndexHint 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);