Skip to content

Commit

Permalink
Merge branch '4.4' into 5.2
Browse files Browse the repository at this point in the history
* 4.4:
  Backport type fixes
  uzb translation
  [DependencyInjection] Fix doc blocks
  [DependencyInjection] Turn $defaultDeprecationTemplate into a constant
  [Form] better form doc types to support static analysis
  • Loading branch information
nicolas-grekas committed Jul 2, 2021
2 parents fcd0b29 + 8da05a9 commit deb040a
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions Node/AttributeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
$attribute = $this->namespace ? $this->namespace.'|'.$this->attribute : $this->attribute;
Expand Down
3 changes: 0 additions & 3 deletions Node/ClassNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
return sprintf('%s[%s.%s]', $this->getNodeName(), $this->selector, $this->name);
Expand Down
3 changes: 0 additions & 3 deletions Node/CombinedSelectorNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity());
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
$combinator = ' ' === $this->combinator ? '<followed>' : $this->combinator;
Expand Down
3 changes: 0 additions & 3 deletions Node/ElementNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getSpecificity(): Specificity
return new Specificity(0, 0, $this->element ? 1 : 0);
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
$element = $this->element ?: '*';
Expand Down
3 changes: 0 additions & 3 deletions Node/FunctionNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
$arguments = implode(', ', array_map(function (Token $token) {
Expand Down
3 changes: 0 additions & 3 deletions Node/HashNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus(new Specificity(1, 0, 0));
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
return sprintf('%s[%s#%s]', $this->getNodeName(), $this->selector, $this->id);
Expand Down
3 changes: 0 additions & 3 deletions Node/NegationNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity());
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
return sprintf('%s[%s:not(%s)]', $this->getNodeName(), $this->selector, $this->subSelector);
Expand Down
3 changes: 0 additions & 3 deletions Node/PseudoNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getSpecificity(): Specificity
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
return sprintf('%s[%s:%s]', $this->getNodeName(), $this->selector, $this->identifier);
Expand Down
3 changes: 0 additions & 3 deletions Node/SelectorNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function getSpecificity(): Specificity
return $this->tree->getSpecificity()->plus(new Specificity(0, 0, $this->pseudoElement ? 1 : 0));
}

/**
* {@inheritdoc}
*/
public function __toString(): string
{
return sprintf('%s[%s%s]', $this->getNodeName(), $this->tree, $this->pseudoElement ? '::'.$this->pseudoElement : '');
Expand Down

0 comments on commit deb040a

Please sign in to comment.