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 91f47ae commit 856cad4Copy full SHA for 856cad4
app/FileStorage/Traits/EloquentAttributeTrait.php
@@ -20,6 +20,7 @@
20
21
namespace Zhiyi\Plus\FileStorage\Traits;
22
23
+use Exception;
24
use Zhiyi\Plus\FileStorage\Resource;
25
use Zhiyi\Plus\FileStorage\StorageInterface;
26
use Zhiyi\Plus\FileStorage\FileMetaInterface;
@@ -49,8 +50,10 @@ protected function getFileStorageResourceMeta(string $resource): ?FileMetaInterf
49
50
51
try {
52
return $this->getFileStorageInstance()->meta(new Resource($resource));
- } finally {
53
+ } catch (Exception $e) {
54
return null;
55
}
56
+
57
+ return null;
58
59
0 commit comments