summaryrefslogtreecommitdiff
path: root/vendor/symfony/expression-language/Node
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-04 17:45:34 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-04 17:45:34 +0100
commit69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c (patch)
treef2ab9b134d7c24f79c4fa66f581cc6387e1938ed /vendor/symfony/expression-language/Node
parentd69397b0fb0a7e71220076299d45dc2ac034b754 (diff)
downloadwebtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.tar.gz
webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.tar.bz2
webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.zip
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/expression-language/Node')
-rw-r--r--vendor/symfony/expression-language/Node/BinaryNode.php6
-rw-r--r--vendor/symfony/expression-language/Node/ConstantNode.php2
-rw-r--r--vendor/symfony/expression-language/Node/FunctionNode.php4
-rw-r--r--vendor/symfony/expression-language/Node/GetAttrNode.php12
-rw-r--r--vendor/symfony/expression-language/Node/Node.php6
5 files changed, 15 insertions, 15 deletions
diff --git a/vendor/symfony/expression-language/Node/BinaryNode.php b/vendor/symfony/expression-language/Node/BinaryNode.php
index 33b4c8f089..f1755daee4 100644
--- a/vendor/symfony/expression-language/Node/BinaryNode.php
+++ b/vendor/symfony/expression-language/Node/BinaryNode.php
@@ -93,7 +93,7 @@ class BinaryNode extends Node
$right = $this->nodes['right']->evaluate($functions, $values);
if ('not in' === $operator) {
- return !in_array($left, $right);
+ return !\in_array($left, $right);
}
$f = self::$functions[$operator];
@@ -135,9 +135,9 @@ class BinaryNode extends Node
case '<=':
return $left <= $right;
case 'not in':
- return !in_array($left, $right);
+ return !\in_array($left, $right);
case 'in':
- return in_array($left, $right);
+ return \in_array($left, $right);
case '+':
return $left + $right;
case '-':
diff --git a/vendor/symfony/expression-language/Node/ConstantNode.php b/vendor/symfony/expression-language/Node/ConstantNode.php
index 733d481b28..53c3290b3a 100644
--- a/vendor/symfony/expression-language/Node/ConstantNode.php
+++ b/vendor/symfony/expression-language/Node/ConstantNode.php
@@ -56,7 +56,7 @@ class ConstantNode extends Node
$array[] = 'null';
} elseif (is_numeric($value)) {
$array[] = $value;
- } elseif (!is_array($value)) {
+ } elseif (!\is_array($value)) {
$array[] = $this->dumpString($value);
} elseif ($this->isHash($value)) {
foreach ($value as $k => $v) {
diff --git a/vendor/symfony/expression-language/Node/FunctionNode.php b/vendor/symfony/expression-language/Node/FunctionNode.php
index 13928c8d4f..ca479b3d5c 100644
--- a/vendor/symfony/expression-language/Node/FunctionNode.php
+++ b/vendor/symfony/expression-language/Node/FunctionNode.php
@@ -37,7 +37,7 @@ class FunctionNode extends Node
$function = $compiler->getFunction($this->attributes['name']);
- $compiler->raw(call_user_func_array($function['compiler'], $arguments));
+ $compiler->raw(\call_user_func_array($function['compiler'], $arguments));
}
public function evaluate($functions, $values)
@@ -47,7 +47,7 @@ class FunctionNode extends Node
$arguments[] = $node->evaluate($functions, $values);
}
- return call_user_func_array($functions[$this->attributes['name']]['evaluator'], $arguments);
+ return \call_user_func_array($functions[$this->attributes['name']]['evaluator'], $arguments);
}
public function toArray()
diff --git a/vendor/symfony/expression-language/Node/GetAttrNode.php b/vendor/symfony/expression-language/Node/GetAttrNode.php
index 2ecba97f7f..f76ce175e8 100644
--- a/vendor/symfony/expression-language/Node/GetAttrNode.php
+++ b/vendor/symfony/expression-language/Node/GetAttrNode.php
@@ -69,7 +69,7 @@ class GetAttrNode extends Node
switch ($this->attributes['type']) {
case self::PROPERTY_CALL:
$obj = $this->nodes['node']->evaluate($functions, $values);
- if (!is_object($obj)) {
+ if (!\is_object($obj)) {
throw new \RuntimeException('Unable to get a property on a non-object.');
}
@@ -79,18 +79,18 @@ class GetAttrNode extends Node
case self::METHOD_CALL:
$obj = $this->nodes['node']->evaluate($functions, $values);
- if (!is_object($obj)) {
+ if (!\is_object($obj)) {
throw new \RuntimeException('Unable to get a property on a non-object.');
}
- if (!is_callable($toCall = array($obj, $this->nodes['attribute']->attributes['value']))) {
- throw new \RuntimeException(sprintf('Unable to call method "%s" of object "%s".', $this->nodes['attribute']->attributes['value'], get_class($obj)));
+ if (!\is_callable($toCall = array($obj, $this->nodes['attribute']->attributes['value']))) {
+ throw new \RuntimeException(sprintf('Unable to call method "%s" of object "%s".', $this->nodes['attribute']->attributes['value'], \get_class($obj)));
}
- return call_user_func_array($toCall, $this->nodes['arguments']->evaluate($functions, $values));
+ return \call_user_func_array($toCall, $this->nodes['arguments']->evaluate($functions, $values));
case self::ARRAY_CALL:
$array = $this->nodes['node']->evaluate($functions, $values);
- if (!is_array($array) && !$array instanceof \ArrayAccess) {
+ if (!\is_array($array) && !$array instanceof \ArrayAccess) {
throw new \RuntimeException('Unable to get an item on a non-array.');
}
diff --git a/vendor/symfony/expression-language/Node/Node.php b/vendor/symfony/expression-language/Node/Node.php
index 1db4e85280..c6eb9f0351 100644
--- a/vendor/symfony/expression-language/Node/Node.php
+++ b/vendor/symfony/expression-language/Node/Node.php
@@ -40,9 +40,9 @@ class Node
$attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
}
- $repr = array(str_replace('Symfony\Component\ExpressionLanguage\Node\\', '', get_class($this)).'('.implode(', ', $attributes));
+ $repr = array(str_replace('Symfony\Component\ExpressionLanguage\Node\\', '', \get_class($this)).'('.implode(', ', $attributes));
- if (count($this->nodes)) {
+ if (\count($this->nodes)) {
foreach ($this->nodes as $node) {
foreach (explode("\n", (string) $node) as $line) {
$repr[] = ' '.$line;
@@ -76,7 +76,7 @@ class Node
public function toArray()
{
- throw new \BadMethodCallException(sprintf('Dumping a "%s" instance is not supported yet.', get_class($this)));
+ throw new \BadMethodCallException(sprintf('Dumping a "%s" instance is not supported yet.', \get_class($this)));
}
public function dump()