We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 423802a + 3611e93 commit c1a704dCopy full SHA for c1a704d
src/DataTransferObjects/Filename.php
@@ -29,7 +29,7 @@ public function __construct(UploadedFile|string $file)
29
30
$pathInfo = pathinfo($file);
31
$this->name = $this->formatFilename($pathInfo['filename']);
32
- $this->extension = $pathInfo['extension'] === '' ? null : $pathInfo['extension'];
+ $this->extension = empty($pathInfo['extension']) ? null : $pathInfo['extension'];
33
$this->path = $pathInfo['dirname'] === '.' ? null : $pathInfo['dirname'];
34
}
35
0 commit comments