summaryrefslogtreecommitdiff
path: root/vendor/symfony/expression-language/Node/BinaryNode.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/expression-language/Node/BinaryNode.php')
-rw-r--r--vendor/symfony/expression-language/Node/BinaryNode.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/symfony/expression-language/Node/BinaryNode.php b/vendor/symfony/expression-language/Node/BinaryNode.php
index 48c6548fa8..0af4f16623 100644
--- a/vendor/symfony/expression-language/Node/BinaryNode.php
+++ b/vendor/symfony/expression-language/Node/BinaryNode.php
@@ -20,24 +20,24 @@ use Symfony\Component\ExpressionLanguage\Compiler;
*/
class BinaryNode extends Node
{
- private static $operators = array(
+ private static $operators = [
'~' => '.',
'and' => '&&',
'or' => '||',
- );
+ ];
- private static $functions = array(
+ private static $functions = [
'**' => 'pow',
'..' => 'range',
'in' => 'in_array',
'not in' => '!in_array',
- );
+ ];
public function __construct(string $operator, Node $left, Node $right)
{
parent::__construct(
- array('left' => $left, 'right' => $right),
- array('operator' => $operator)
+ ['left' => $left, 'right' => $right],
+ ['operator' => $operator]
);
}
@@ -157,6 +157,6 @@ class BinaryNode extends Node
public function toArray()
{
- return array('(', $this->nodes['left'], ' '.$this->attributes['operator'].' ', $this->nodes['right'], ')');
+ return ['(', $this->nodes['left'], ' '.$this->attributes['operator'].' ', $this->nodes['right'], ')'];
}
}