TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, null given