mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Modernize to PHP 8.1
This commit is contained in:
parent
ca018c77e3
commit
9e2720cddc
26 changed files with 48 additions and 52 deletions
|
@ -20,6 +20,6 @@ class Matches
|
|||
return false;
|
||||
}
|
||||
|
||||
return false !== stripos($subject, (string) $pattern);
|
||||
return false !== stripos((string) $subject, (string) $pattern);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,6 @@ class NotMatches
|
|||
return true;
|
||||
}
|
||||
|
||||
return false === stripos($subject, (string) $pattern);
|
||||
return false === stripos((string) $subject, (string) $pattern);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class PatternMatches
|
|||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
$count = preg_match("`$pattern`i", $subject);
|
||||
$count = preg_match("`$pattern`i", (string) $subject);
|
||||
|
||||
return \is_int($count) && $count > 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue