Use in_array with strict typing

This commit is contained in:
2026-03-11 18:29:08 +01:00
parent 3f2b9091dc
commit 59453a2196

View File

@@ -229,7 +229,7 @@ final class NodaBlacklistedTerms {
*/ */
public static function checkActorGivenNameIsBlacklisted(string $given_name):bool { 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; else return false;
} }