mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-10 17:03:52 +09:00
Update dependencies
This commit is contained in:
20
vendor/symfony/css-selector/XPath/Translator.php
vendored
20
vendor/symfony/css-selector/XPath/Translator.php
vendored
@@ -30,23 +30,23 @@ use Symfony\Component\CssSelector\Parser\ParserInterface;
|
||||
*/
|
||||
class Translator implements TranslatorInterface
|
||||
{
|
||||
private $mainParser;
|
||||
private ParserInterface $mainParser;
|
||||
|
||||
/**
|
||||
* @var ParserInterface[]
|
||||
*/
|
||||
private $shortcutParsers = [];
|
||||
private array $shortcutParsers = [];
|
||||
|
||||
/**
|
||||
* @var Extension\ExtensionInterface[]
|
||||
*/
|
||||
private $extensions = [];
|
||||
private array $extensions = [];
|
||||
|
||||
private $nodeTranslators = [];
|
||||
private $combinationTranslators = [];
|
||||
private $functionTranslators = [];
|
||||
private $pseudoClassTranslators = [];
|
||||
private $attributeMatchingTranslators = [];
|
||||
private array $nodeTranslators = [];
|
||||
private array $combinationTranslators = [];
|
||||
private array $functionTranslators = [];
|
||||
private array $pseudoClassTranslators = [];
|
||||
private array $attributeMatchingTranslators = [];
|
||||
|
||||
public function __construct(ParserInterface $parser = null)
|
||||
{
|
||||
@@ -117,7 +117,7 @@ class Translator implements TranslatorInterface
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function registerExtension(Extension\ExtensionInterface $extension): self
|
||||
public function registerExtension(Extension\ExtensionInterface $extension): static
|
||||
{
|
||||
$this->extensions[$extension->getName()] = $extension;
|
||||
|
||||
@@ -145,7 +145,7 @@ class Translator implements TranslatorInterface
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function registerParserShortcut(ParserInterface $shortcut): self
|
||||
public function registerParserShortcut(ParserInterface $shortcut): static
|
||||
{
|
||||
$this->shortcutParsers[] = $shortcut;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user