diff --git a/src/LogToDB.php b/src/LogToDB.php index cfed00b..8706503 100644 --- a/src/LogToDB.php +++ b/src/LogToDB.php @@ -86,7 +86,7 @@ function __construct($loggingConfig = []) * * @return DBLog|DBLogMongoDB */ - public static function model(string $channel = null, string $connection = 'default', string $collection = null) + public static function model(?string $channel = null, string $connection = 'default', ?string $collection = null) { $conn = null; $coll = null;