Skip to content

Commit 25f3bfe

Browse files
committed
[Uploadable] add a null check before calling is_file to suppress deprecation warning
1 parent 7622db1 commit 25f3bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uploadable/UploadableListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function processFile(AdapterInterface $ea, $object, $action)
389389
*/
390390
public function removeFile($filePath)
391391
{
392-
if (is_file($filePath)) {
392+
if (!is_null($filePath) && is_file($filePath)) {
393393
return @unlink($filePath);
394394
}
395395

0 commit comments

Comments
 (0)