mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-05 18:41:02 +00:00
Fix some self deprecation notices
This commit is contained in:
parent
5a8b581adf
commit
98ed784af3
47 changed files with 57 additions and 49 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue