forked from wallabag/wallabag
Fix some self deprecation notices
This commit is contained in:
@ -16,6 +16,10 @@ class Matches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
if (null === $subject) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false !== stripos($subject, $pattern);
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,6 +16,10 @@ class NotMatches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
if (null === $subject) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false === stripos($subject, $pattern);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user