Profanity icon indicating copy to clipboard operation
Profanity copied to clipboard

production WARNING php 8.1

Open MjeTjeu opened this issue 2 years ago • 3 comments

[2023-02-23 09:11:23] production.WARNING: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in vendor/consoletvs/profanity/Classes/Blocker.php on line 135

MjeTjeu avatar Feb 23 '23 09:02 MjeTjeu

did you fix it?

B1Q avatar Mar 12 '23 06:03 B1Q

if (! is_string($this->text)) {
    return [];
}

before the preg_match on 135

zanderwar avatar Nov 13 '23 08:11 zanderwar