1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 08:40:33 +02:00

Refactor code

This commit is contained in:
Oliver Vogel
2025-05-31 09:40:25 +02:00
parent 9d19b255fe
commit 3f5e29989b

View File

@@ -84,7 +84,7 @@ class Origin
*/
public function fileExtension(): ?string
{
return empty($this->filePath) ? null : pathinfo($this->filePath, PATHINFO_EXTENSION);
return pathinfo($this->filePath ?: '', PATHINFO_EXTENSION) ?: null;
}
/**