Use string|null instead of ?string in php8.1 in parameters and return types This is more understandable and the ? way might be deprecated in future