Skip to content

Commit

Permalink
Rewrite return type
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jul 3, 2024
1 parent 3b7f6a0 commit 115d2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function create(string|self|MediaType|FileExtension $identifier):
* @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);
Expand Down

0 comments on commit 115d2ad

Please sign in to comment.