mirror of
https://github.com/Intervention/image.git
synced 2025-01-17 20:28:21 +01:00
Rewrite return type
This commit is contained in:
parent
3b7f6a0cde
commit
115d2ad3be
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user