提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

8
vendor/mtdowling/jmespath.php/src/Parser.php vendored Executable file → Normal file
View File

@ -57,7 +57,7 @@ class Parser
/**
* @param Lexer|null $lexer Lexer used to tokenize expressions
*/
public function __construct(Lexer $lexer = null)
public function __construct(?Lexer $lexer = null)
{
$this->lexer = $lexer ?: new Lexer();
}
@ -366,7 +366,7 @@ class Parser
];
}
private function parseWildcardObject(array $left = null)
private function parseWildcardObject(?array $left = null)
{
$this->next();
@ -380,7 +380,7 @@ class Parser
];
}
private function parseWildcardArray(array $left = null)
private function parseWildcardArray(?array $left = null)
{
static $getRbracket = [T::T_RBRACKET => true];
$this->next($getRbracket);
@ -473,7 +473,7 @@ class Parser
: $this->tokens[$this->tpos + 1]['type'];
}
private function next(array $match = null)
private function next(?array $match = null)
{
if (!isset($this->tokens[$this->tpos + 1])) {
$this->token = self::$nullToken;