Skip to content

Commit 0049211

Browse files
fix: deprecated is_file function (#45216)
1 parent f9912c7 commit 0049211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public function hasSameHash($firstFile, $secondFile)
536536
*/
537537
public function isFile($file)
538538
{
539-
return is_file($file);
539+
return is_string($file) && is_file($file);
540540
}
541541

542542
/**

0 commit comments

Comments
 (0)