diff options
Diffstat (limited to 'src/Components/IndexHint.php')
-rw-r--r-- | src/Components/IndexHint.php | 10 |
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); |