mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 16:34:00 +02:00
Rewrite return type
This commit is contained in:
@@ -70,7 +70,7 @@ enum Format
|
|||||||
* @param string|Format|MediaType|FileExtension $identifier
|
* @param string|Format|MediaType|FileExtension $identifier
|
||||||
* @return Format|null
|
* @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 {
|
try {
|
||||||
return self::create($identifier);
|
return self::create($identifier);
|
||||||
|
Reference in New Issue
Block a user