提交的内容
This commit is contained in:
8
vendor/mtdowling/jmespath.php/src/Parser.php
vendored
Executable file → Normal file
8
vendor/mtdowling/jmespath.php/src/Parser.php
vendored
Executable file → Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user