From c4855a32ad2f7719276dbec7c9e9f58a314040a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 1 Jun 2022 15:32:40 +0200 Subject: [PATCH] Update composer dependencies --- .../files/lib/system/api/composer.lock | 30 ++++++++-------- .../lib/system/api/composer/installed.json | 34 +++++++++---------- .../lib/system/api/composer/installed.php | 12 +++---- .../system/api/composer/platform_check.php | 4 +-- .../css-selector/CssSelectorConverter.php | 4 +-- .../css-selector/Node/AttributeNode.php | 2 +- .../symfony/css-selector/Node/ClassNode.php | 2 +- .../Node/CombinedSelectorNode.php | 4 +-- .../css-selector/Node/FunctionNode.php | 2 +- .../symfony/css-selector/Node/HashNode.php | 2 +- .../css-selector/Node/NegationNode.php | 4 +-- .../symfony/css-selector/Node/PseudoNode.php | 2 +- .../css-selector/Node/SelectorNode.php | 2 +- .../Parser/Handler/HashHandler.php | 4 +-- .../Parser/Handler/IdentifierHandler.php | 4 +-- .../Parser/Handler/NumberHandler.php | 2 +- .../Parser/Handler/StringHandler.php | 4 +-- .../symfony/css-selector/Parser/Parser.php | 2 +- .../css-selector/Parser/TokenStream.php | 2 +- .../Parser/Tokenizer/TokenizerEscaping.php | 2 +- .../Extension/AttributeMatchingExtension.php | 16 ++++----- .../XPath/Extension/CombinationExtension.php | 8 ++--- .../XPath/Extension/FunctionExtension.php | 12 +++---- .../XPath/Extension/HtmlExtension.php | 18 +++++----- .../XPath/Extension/NodeExtension.php | 18 +++++----- .../XPath/Extension/PseudoClassExtension.php | 16 ++++----- .../symfony/css-selector/XPath/Translator.php | 2 +- .../api/symfony/css-selector/composer.json | 2 +- .../deprecation-contracts/composer.json | 4 +-- 29 files changed, 110 insertions(+), 110 deletions(-) diff --git a/wcfsetup/install/files/lib/system/api/composer.lock b/wcfsetup/install/files/lib/system/api/composer.lock index 71424174f9..a471a984fa 100644 --- a/wcfsetup/install/files/lib/system/api/composer.lock +++ b/wcfsetup/install/files/lib/system/api/composer.lock @@ -1468,20 +1468,20 @@ }, { "name": "symfony/css-selector", - "version": "v6.0.3", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "1955d595c12c111629cc814d3f2a2ff13580508a" + "reference": "05c40f02f621609404b8820ff8bc39acb46e19cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/1955d595c12c111629cc814d3f2a2ff13580508a", - "reference": "1955d595c12c111629cc814d3f2a2ff13580508a", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/05c40f02f621609404b8820ff8bc39acb46e19cf", + "reference": "05c40f02f621609404b8820ff8bc39acb46e19cf", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "autoload": { @@ -1513,7 +1513,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.0.3" + "source": "https://github.com/symfony/css-selector/tree/v6.1.0" }, "funding": [ { @@ -1529,29 +1529,29 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.1", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -1580,7 +1580,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.0" }, "funding": [ { @@ -1596,7 +1596,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-02-25T11:15:52+00:00" }, { "name": "symfony/polyfill-mbstring", diff --git a/wcfsetup/install/files/lib/system/api/composer/installed.json b/wcfsetup/install/files/lib/system/api/composer/installed.json index aad85efaf8..c324a3d211 100644 --- a/wcfsetup/install/files/lib/system/api/composer/installed.json +++ b/wcfsetup/install/files/lib/system/api/composer/installed.json @@ -1506,23 +1506,23 @@ }, { "name": "symfony/css-selector", - "version": "v6.0.3", - "version_normalized": "6.0.3.0", + "version": "v6.1.0", + "version_normalized": "6.1.0.0", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "1955d595c12c111629cc814d3f2a2ff13580508a" + "reference": "05c40f02f621609404b8820ff8bc39acb46e19cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/1955d595c12c111629cc814d3f2a2ff13580508a", - "reference": "1955d595c12c111629cc814d3f2a2ff13580508a", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/05c40f02f621609404b8820ff8bc39acb46e19cf", + "reference": "05c40f02f621609404b8820ff8bc39acb46e19cf", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, - "time": "2022-01-02T09:55:41+00:00", + "time": "2022-02-25T11:15:52+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -1554,7 +1554,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.0.3" + "source": "https://github.com/symfony/css-selector/tree/v6.1.0" }, "funding": [ { @@ -1574,27 +1574,27 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.1", - "version_normalized": "3.0.1.0", + "version": "v3.1.0", + "version_normalized": "3.1.0.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, - "time": "2022-01-02T09:55:41+00:00", + "time": "2022-02-25T11:15:52+00:00", "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", @@ -1624,7 +1624,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.0" }, "funding": [ { diff --git a/wcfsetup/install/files/lib/system/api/composer/installed.php b/wcfsetup/install/files/lib/system/api/composer/installed.php index 231226b88b..c16d6cad08 100644 --- a/wcfsetup/install/files/lib/system/api/composer/installed.php +++ b/wcfsetup/install/files/lib/system/api/composer/installed.php @@ -236,21 +236,21 @@ 'dev_requirement' => false, ), 'symfony/css-selector' => array( - 'pretty_version' => 'v6.0.3', - 'version' => '6.0.3.0', + 'pretty_version' => 'v6.1.0', + 'version' => '6.1.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/css-selector', 'aliases' => array(), - 'reference' => '1955d595c12c111629cc814d3f2a2ff13580508a', + 'reference' => '05c40f02f621609404b8820ff8bc39acb46e19cf', 'dev_requirement' => false, ), 'symfony/deprecation-contracts' => array( - 'pretty_version' => 'v3.0.1', - 'version' => '3.0.1.0', + 'pretty_version' => 'v3.1.0', + 'version' => '3.1.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), - 'reference' => '26954b3d62a6c5fd0ea8a2a00c0353a14978d05c', + 'reference' => '07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918', 'dev_requirement' => false, ), 'symfony/polyfill-mbstring' => array( diff --git a/wcfsetup/install/files/lib/system/api/composer/platform_check.php b/wcfsetup/install/files/lib/system/api/composer/platform_check.php index b168ddd5d9..4c3a5d68f1 100644 --- a/wcfsetup/install/files/lib/system/api/composer/platform_check.php +++ b/wcfsetup/install/files/lib/system/api/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 80002)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.2". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 80100)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; } if ($issues) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/CssSelectorConverter.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/CssSelectorConverter.php index 86ccb7958f..7120a2950e 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/CssSelectorConverter.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/CssSelectorConverter.php @@ -26,7 +26,7 @@ use Symfony\Component\CssSelector\XPath\Translator; */ class CssSelectorConverter { - private $translator; + private Translator $translator; private array $cache; private static array $xmlCache = []; @@ -62,6 +62,6 @@ class CssSelectorConverter */ public function toXPath(string $cssExpr, string $prefix = 'descendant-or-self::'): string { - return $this->cache[$prefix][$cssExpr] ?? $this->cache[$prefix][$cssExpr] = $this->translator->cssToXPath($cssExpr, $prefix); + return $this->cache[$prefix][$cssExpr] ??= $this->translator->cssToXPath($cssExpr, $prefix); } } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/AttributeNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/AttributeNode.php index bca91eb88d..bca9db7006 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/AttributeNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/AttributeNode.php @@ -23,7 +23,7 @@ namespace Symfony\Component\CssSelector\Node; */ class AttributeNode extends AbstractNode { - private $selector; + private NodeInterface $selector; private ?string $namespace; private string $attribute; private string $operator; diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/ClassNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/ClassNode.php index 0e93768836..b9284073ce 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/ClassNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/ClassNode.php @@ -23,7 +23,7 @@ namespace Symfony\Component\CssSelector\Node; */ class ClassNode extends AbstractNode { - private $selector; + private NodeInterface $selector; private string $name; public function __construct(NodeInterface $selector, string $name) diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/CombinedSelectorNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/CombinedSelectorNode.php index f5f996974c..3388994856 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/CombinedSelectorNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/CombinedSelectorNode.php @@ -23,9 +23,9 @@ namespace Symfony\Component\CssSelector\Node; */ class CombinedSelectorNode extends AbstractNode { - private $selector; + private NodeInterface $selector; private string $combinator; - private $subSelector; + private NodeInterface $subSelector; public function __construct(NodeInterface $selector, string $combinator, NodeInterface $subSelector) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/FunctionNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/FunctionNode.php index e91a1662d0..5bfca1842f 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/FunctionNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/FunctionNode.php @@ -25,7 +25,7 @@ use Symfony\Component\CssSelector\Parser\Token; */ class FunctionNode extends AbstractNode { - private $selector; + private NodeInterface $selector; private string $name; private array $arguments; diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/HashNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/HashNode.php index 119b0d57e0..5f5923fb69 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/HashNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/HashNode.php @@ -23,7 +23,7 @@ namespace Symfony\Component\CssSelector\Node; */ class HashNode extends AbstractNode { - private $selector; + private NodeInterface $selector; private string $id; public function __construct(NodeInterface $selector, string $id) diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/NegationNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/NegationNode.php index f00522fb96..c75d052b03 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/NegationNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/NegationNode.php @@ -23,8 +23,8 @@ namespace Symfony\Component\CssSelector\Node; */ class NegationNode extends AbstractNode { - private $selector; - private $subSelector; + private NodeInterface $selector; + private NodeInterface $subSelector; public function __construct(NodeInterface $selector, NodeInterface $subSelector) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/PseudoNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/PseudoNode.php index 5d6325a5ea..6825f3a3db 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/PseudoNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/PseudoNode.php @@ -23,7 +23,7 @@ namespace Symfony\Component\CssSelector\Node; */ class PseudoNode extends AbstractNode { - private $selector; + private NodeInterface $selector; private string $identifier; public function __construct(NodeInterface $selector, string $identifier) diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/SelectorNode.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/SelectorNode.php index 55fae1e762..b1d6c58e0a 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/SelectorNode.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Node/SelectorNode.php @@ -23,7 +23,7 @@ namespace Symfony\Component\CssSelector\Node; */ class SelectorNode extends AbstractNode { - private $tree; + private NodeInterface $tree; private ?string $pseudoElement; public function __construct(NodeInterface $tree, string $pseudoElement = null) diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/HashHandler.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/HashHandler.php index 7ae9b438ca..cde8cda2b2 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/HashHandler.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/HashHandler.php @@ -29,8 +29,8 @@ use Symfony\Component\CssSelector\Parser\TokenStream; */ class HashHandler implements HandlerInterface { - private $patterns; - private $escaping; + private TokenizerPatterns $patterns; + private TokenizerEscaping $escaping; public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/IdentifierHandler.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/IdentifierHandler.php index 7b2a14e2c3..2b9e02e050 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/IdentifierHandler.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/IdentifierHandler.php @@ -29,8 +29,8 @@ use Symfony\Component\CssSelector\Parser\TokenStream; */ class IdentifierHandler implements HandlerInterface { - private $patterns; - private $escaping; + private TokenizerPatterns $patterns; + private TokenizerEscaping $escaping; public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/NumberHandler.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/NumberHandler.php index 8291a68d13..d3bbe5f411 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/NumberHandler.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/NumberHandler.php @@ -28,7 +28,7 @@ use Symfony\Component\CssSelector\Parser\TokenStream; */ class NumberHandler implements HandlerInterface { - private $patterns; + private TokenizerPatterns $patterns; public function __construct(TokenizerPatterns $patterns) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/StringHandler.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/StringHandler.php index 6ce83cdc9b..341c75fc78 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/StringHandler.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Handler/StringHandler.php @@ -31,8 +31,8 @@ use Symfony\Component\CssSelector\Parser\TokenStream; */ class StringHandler implements HandlerInterface { - private $patterns; - private $escaping; + private TokenizerPatterns $patterns; + private TokenizerEscaping $escaping; public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Parser.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Parser.php index d73489edfb..df77e2ce4a 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Parser.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Parser.php @@ -27,7 +27,7 @@ use Symfony\Component\CssSelector\Parser\Tokenizer\Tokenizer; */ class Parser implements ParserInterface { - private $tokenizer; + private Tokenizer $tokenizer; public function __construct(Tokenizer $tokenizer = null) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/TokenStream.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/TokenStream.php index e2c15a642d..69f777807d 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/TokenStream.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/TokenStream.php @@ -37,7 +37,7 @@ class TokenStream private array $used = []; private int $cursor = 0; - private $peeked; + private ?Token $peeked; private bool $peeking = false; /** diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php index 013e827d2b..8c4b9f7423 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php @@ -23,7 +23,7 @@ namespace Symfony\Component\CssSelector\Parser\Tokenizer; */ class TokenizerEscaping { - private $patterns; + private TokenizerPatterns $patterns; public function __construct(TokenizerPatterns $patterns) { diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php index a9879f1be8..b40a86bf66 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php @@ -32,14 +32,14 @@ class AttributeMatchingExtension extends AbstractExtension public function getAttributeMatchingTranslators(): array { return [ - 'exists' => [$this, 'translateExists'], - '=' => [$this, 'translateEquals'], - '~=' => [$this, 'translateIncludes'], - '|=' => [$this, 'translateDashMatch'], - '^=' => [$this, 'translatePrefixMatch'], - '$=' => [$this, 'translateSuffixMatch'], - '*=' => [$this, 'translateSubstringMatch'], - '!=' => [$this, 'translateDifferent'], + 'exists' => $this->translateExists(...), + '=' => $this->translateEquals(...), + '~=' => $this->translateIncludes(...), + '|=' => $this->translateDashMatch(...), + '^=' => $this->translatePrefixMatch(...), + '$=' => $this->translateSuffixMatch(...), + '*=' => $this->translateSubstringMatch(...), + '!=' => $this->translateDifferent(...), ]; } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/CombinationExtension.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/CombinationExtension.php index aee976e949..e75da8b49e 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/CombinationExtension.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/CombinationExtension.php @@ -31,10 +31,10 @@ class CombinationExtension extends AbstractExtension public function getCombinationTranslators(): array { return [ - ' ' => [$this, 'translateDescendant'], - '>' => [$this, 'translateChild'], - '+' => [$this, 'translateDirectAdjacent'], - '~' => [$this, 'translateIndirectAdjacent'], + ' ' => $this->translateDescendant(...), + '>' => $this->translateChild(...), + '+' => $this->translateDirectAdjacent(...), + '~' => $this->translateIndirectAdjacent(...), ]; } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/FunctionExtension.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/FunctionExtension.php index d3f7222a4d..4ed9c2392d 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/FunctionExtension.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/FunctionExtension.php @@ -36,12 +36,12 @@ class FunctionExtension extends AbstractExtension public function getFunctionTranslators(): array { return [ - 'nth-child' => [$this, 'translateNthChild'], - 'nth-last-child' => [$this, 'translateNthLastChild'], - 'nth-of-type' => [$this, 'translateNthOfType'], - 'nth-last-of-type' => [$this, 'translateNthLastOfType'], - 'contains' => [$this, 'translateContains'], - 'lang' => [$this, 'translateLang'], + 'nth-child' => $this->translateNthChild(...), + 'nth-last-child' => $this->translateNthLastChild(...), + 'nth-of-type' => $this->translateNthOfType(...), + 'nth-last-of-type' => $this->translateNthLastOfType(...), + 'contains' => $this->translateContains(...), + 'lang' => $this->translateLang(...), ]; } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/HtmlExtension.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/HtmlExtension.php index 6edc085810..95289818a1 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/HtmlExtension.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/HtmlExtension.php @@ -42,14 +42,14 @@ class HtmlExtension extends AbstractExtension public function getPseudoClassTranslators(): array { return [ - 'checked' => [$this, 'translateChecked'], - 'link' => [$this, 'translateLink'], - 'disabled' => [$this, 'translateDisabled'], - 'enabled' => [$this, 'translateEnabled'], - 'selected' => [$this, 'translateSelected'], - 'invalid' => [$this, 'translateInvalid'], - 'hover' => [$this, 'translateHover'], - 'visited' => [$this, 'translateVisited'], + 'checked' => $this->translateChecked(...), + 'link' => $this->translateLink(...), + 'disabled' => $this->translateDisabled(...), + 'enabled' => $this->translateEnabled(...), + 'selected' => $this->translateSelected(...), + 'invalid' => $this->translateInvalid(...), + 'hover' => $this->translateHover(...), + 'visited' => $this->translateVisited(...), ]; } @@ -59,7 +59,7 @@ class HtmlExtension extends AbstractExtension public function getFunctionTranslators(): array { return [ - 'lang' => [$this, 'translateLang'], + 'lang' => $this->translateLang(...), ]; } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/NodeExtension.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/NodeExtension.php index 642702bbb8..70f287b569 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/NodeExtension.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/NodeExtension.php @@ -65,15 +65,15 @@ class NodeExtension extends AbstractExtension public function getNodeTranslators(): array { return [ - 'Selector' => [$this, 'translateSelector'], - 'CombinedSelector' => [$this, 'translateCombinedSelector'], - 'Negation' => [$this, 'translateNegation'], - 'Function' => [$this, 'translateFunction'], - 'Pseudo' => [$this, 'translatePseudo'], - 'Attribute' => [$this, 'translateAttribute'], - 'Class' => [$this, 'translateClass'], - 'Hash' => [$this, 'translateHash'], - 'Element' => [$this, 'translateElement'], + 'Selector' => $this->translateSelector(...), + 'CombinedSelector' => $this->translateCombinedSelector(...), + 'Negation' => $this->translateNegation(...), + 'Function' => $this->translateFunction(...), + 'Pseudo' => $this->translatePseudo(...), + 'Attribute' => $this->translateAttribute(...), + 'Class' => $this->translateClass(...), + 'Hash' => $this->translateHash(...), + 'Element' => $this->translateElement(...), ]; } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/PseudoClassExtension.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/PseudoClassExtension.php index a50b0486ac..a9b6abc4bf 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/PseudoClassExtension.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Extension/PseudoClassExtension.php @@ -32,14 +32,14 @@ class PseudoClassExtension extends AbstractExtension public function getPseudoClassTranslators(): array { return [ - 'root' => [$this, 'translateRoot'], - 'first-child' => [$this, 'translateFirstChild'], - 'last-child' => [$this, 'translateLastChild'], - 'first-of-type' => [$this, 'translateFirstOfType'], - 'last-of-type' => [$this, 'translateLastOfType'], - 'only-child' => [$this, 'translateOnlyChild'], - 'only-of-type' => [$this, 'translateOnlyOfType'], - 'empty' => [$this, 'translateEmpty'], + 'root' => $this->translateRoot(...), + 'first-child' => $this->translateFirstChild(...), + 'last-child' => $this->translateLastChild(...), + 'first-of-type' => $this->translateFirstOfType(...), + 'last-of-type' => $this->translateLastOfType(...), + 'only-child' => $this->translateOnlyChild(...), + 'only-of-type' => $this->translateOnlyOfType(...), + 'empty' => $this->translateEmpty(...), ]; } diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Translator.php b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Translator.php index c0bb29dee6..128a4a9397 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Translator.php +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/XPath/Translator.php @@ -30,7 +30,7 @@ use Symfony\Component\CssSelector\Parser\ParserInterface; */ class Translator implements TranslatorInterface { - private $mainParser; + private ParserInterface $mainParser; /** * @var ParserInterface[] diff --git a/wcfsetup/install/files/lib/system/api/symfony/css-selector/composer.json b/wcfsetup/install/files/lib/system/api/symfony/css-selector/composer.json index 7c9551cdee..c08fdc2cd6 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/css-selector/composer.json +++ b/wcfsetup/install/files/lib/system/api/symfony/css-selector/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "autoload": { "psr-4": { "Symfony\\Component\\CssSelector\\": "" }, diff --git a/wcfsetup/install/files/lib/system/api/symfony/deprecation-contracts/composer.json b/wcfsetup/install/files/lib/system/api/symfony/deprecation-contracts/composer.json index 1c1b4ba0e9..f5de4eb401 100644 --- a/wcfsetup/install/files/lib/system/api/symfony/deprecation-contracts/composer.json +++ b/wcfsetup/install/files/lib/system/api/symfony/deprecation-contracts/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "autoload": { "files": [ @@ -25,7 +25,7 @@ "minimum-stability": "dev", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.1-dev" }, "thanks": { "name": "symfony/contracts", -- 2.20.1