Skip to content

Commit

Permalink
Merge branch '3.4' into 4.4
Browse files Browse the repository at this point in the history
* 3.4:
  Fix CS
  • Loading branch information
fabpot committed Feb 4, 2020
2 parents 8b14549 + 8677460 commit 58a8254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Node/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __toString()
$attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
}

$repr = [str_replace('Symfony\Component\ExpressionLanguage\Node\\', '', \get_class($this)).'('.implode(', ', $attributes)];
$repr = [str_replace('Symfony\Component\ExpressionLanguage\Node\\', '', static::class).'('.implode(', ', $attributes)];

if (\count($this->nodes)) {
foreach ($this->nodes as $node) {
Expand Down Expand Up @@ -79,7 +79,7 @@ public function evaluate($functions, $values)

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.', static::class));
}

public function dump()
Expand Down

0 comments on commit 58a8254

Please sign in to comment.