Skip to content

Commit

Permalink
Switch to self reference
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Feb 4, 2025
1 parent d73ccf5 commit 42b8d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FileExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function create(string|self|Format|MediaType $identifier): self
}

try {
$extension = FileExtension::from(strtolower($identifier));
$extension = self::from(strtolower($identifier));
} catch (Error) {
try {
$extension = MediaType::from(strtolower($identifier))->fileExtension();
Expand Down
2 changes: 1 addition & 1 deletion src/MediaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function create(string|self|Format|FileExtension $identifier): sel
}

try {
$type = MediaType::from(strtolower($identifier));
$type = self::from(strtolower($identifier));
} catch (Error) {
try {
$type = FileExtension::from(strtolower($identifier))->mediaType();
Expand Down

0 comments on commit 42b8d2c

Please sign in to comment.