Skip to content

Upgrading symfony/css-selector 6 to 7

Breakingv6.4.49 → v7.4.22Security1Platform1New1Changed1Fixed8

BreakingUpgrade verdict

A platform requirement change and a security fix.

  • You now need PHP 8.2 or newer to install and use this package.
  • This version is published as a security release, so upgrading is recommended.
2 items need code or config changes

PHP requirement changed in v7.0.0-BETA1: >=8.1 → >=8.2.

Security1
Marks the release as a security release.
Platform1
Raises the minimum PHP version to 8.2.

Generated by DepDelta from published PHP source. Not mixed with prose notes.

  • added: class MatchingNode extends AbstractNode
  • added: class SpecificityAdjustmentNode extends AbstractNode
  • added: constructor MatchingNode(NodeInterface $selector, array $arguments = …)
  • added: constructor SpecificityAdjustmentNode(NodeInterface $selector, array $arguments = …)
  • added: method MatchingNode.__toString(): string
  • added: method MatchingNode.getSpecificity(): Specificity
  • added: method SpecificityAdjustmentNode.__toString(): string
  • added: method SpecificityAdjustmentNode.getSpecificity(): Specificity
  • added: property MatchingNode.arguments: array
  • added: property MatchingNode.selector: NodeInterface
  • added: property SpecificityAdjustmentNode.arguments: array
  • added: property SpecificityAdjustmentNode.selector: NodeInterface
  • changed: method Reader.getOffset(string $string): int|bool → method Reader.getOffset(string $string): int|false
  • changed: method Token.getType(): ?int → method Token.getType(): ?string
  • changed: method XPathExpr.addCondition(string $condition): static → method XPathExpr.addCondition(string $condition, string $operator = …): static
  • added: method NodeExtension.translateMatching(Node\MatchingNode $node, Translator $translator): XPathExpr
  • added: method NodeExtension.translateSpecificityAdjustment(Node\SpecificityAdjustmentNode $node, Translator $translator): XPathExpr