From 115d2ad3bed41e64e411317216666a3da81e6d42 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Wed, 3 Jul 2024 17:19:15 +0200 Subject: [PATCH] Rewrite return type --- src/Format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Format.php b/src/Format.php index 843e4d19..51246967 100644 --- a/src/Format.php +++ b/src/Format.php @@ -70,7 +70,7 @@ enum Format * @param string|Format|MediaType|FileExtension $identifier * @return Format|null */ - public static function tryCreate(string|self|MediaType|FileExtension $identifier): self|null + public static function tryCreate(string|self|MediaType|FileExtension $identifier): ?self { try { return self::create($identifier);