Skip to content

Commit 42b8d2c

Browse files
committed
Switch to self reference
1 parent d73ccf5 commit 42b8d2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FileExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function create(string|self|Format|MediaType $identifier): self
5252
}
5353

5454
try {
55-
$extension = FileExtension::from(strtolower($identifier));
55+
$extension = self::from(strtolower($identifier));
5656
} catch (Error) {
5757
try {
5858
$extension = MediaType::from(strtolower($identifier))->fileExtension();

src/MediaType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function create(string|self|Format|FileExtension $identifier): sel
6060
}
6161

6262
try {
63-
$type = MediaType::from(strtolower($identifier));
63+
$type = self::from(strtolower($identifier));
6464
} catch (Error) {
6565
try {
6666
$type = FileExtension::from(strtolower($identifier))->mediaType();

0 commit comments

Comments
 (0)