Use in_array with strict typing
This commit is contained in:
@@ -229,7 +229,7 @@ final class NodaBlacklistedTerms {
|
||||
*/
|
||||
public static function checkActorGivenNameIsBlacklisted(string $given_name):bool {
|
||||
|
||||
if (in_array(trim($given_name, ' ()[]?'), self::ACTOR_GIVEN_NAMES_BLACKLIST)) return true;
|
||||
if (in_array(trim($given_name, ' ()[]?'), self::ACTOR_GIVEN_NAMES_BLACKLIST, true)) return true;
|
||||
else return false;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user