Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+4 -4
View File
@@ -20,14 +20,14 @@ use Symfony\Component\ExpressionLanguage\Compiler;
*/
class UnaryNode extends Node
{
private static $operators = [
private const OPERATORS = [
'!' => '!',
'not' => '!',
'+' => '+',
'-' => '-',
];
public function __construct($operator, Node $node)
public function __construct(string $operator, Node $node)
{
parent::__construct(
['node' => $node],
@@ -39,7 +39,7 @@ class UnaryNode extends Node
{
$compiler
->raw('(')
->raw(self::$operators[$this->attributes['operator']])
->raw(self::OPERATORS[$this->attributes['operator']])
->compile($this->nodes['node'])
->raw(')')
;
@@ -59,7 +59,7 @@ class UnaryNode extends Node
return $value;
}
public function toArray()
public function toArray(): array
{
return ['(', $this->attributes['operator'].' ', $this->nodes['node'], ')'];
}