Keep this return type as int|bool
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
f5538ca41d
commit
8a47f88d3b
@ -71,13 +71,22 @@ class Advisor
|
||||
'substr',
|
||||
static function (): void {
|
||||
},
|
||||
static fn (array $arguments, string $string, int $start, int $length): string => substr($string, $start, $length)
|
||||
static fn (
|
||||
array $arguments,
|
||||
string $string,
|
||||
int $start,
|
||||
int $length,
|
||||
): string => substr($string, $start, $length)
|
||||
);
|
||||
$this->expression->register(
|
||||
'preg_match',
|
||||
static function (): void {
|
||||
},
|
||||
static fn (array $arguments, string $pattern, string $subject): int|false => preg_match($pattern, $subject)
|
||||
static fn (
|
||||
array $arguments,
|
||||
string $pattern,
|
||||
string $subject,
|
||||
): int|bool => preg_match($pattern, $subject),
|
||||
);
|
||||
$this->expression->register(
|
||||
'ADVISOR_bytime',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user