1
0
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:
Oliver Vogel 2024-07-03 17:19:15 +02:00
parent 3b7f6a0cde
commit 115d2ad3be
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB

View File

@ -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);