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.
1 parent 9a38b92 commit 32e2550Copy full SHA for 32e2550
packages/framework/src/Support/Filesystem/MediaFile.php
@@ -130,7 +130,7 @@ public function getMimeType(): string
130
131
public function getHash(): string
132
{
133
- return md5_file($this->getAbsolutePath());
+ return md5_file($this->getAbsolutePath()) ?: throw new FileNotFoundException($this->path);
134
}
135
136
/** @internal */
0 commit comments