From 315659b0772680802d3205c03d2813243cb59c59 Mon Sep 17 00:00:00 2001 From: Matt Harrison Date: Wed, 26 Feb 2020 01:03:00 -0500 Subject: [PATCH 1/2] Change cache filesystem permission so if the config is not set it does not issue a chmod call. This reverts some of the behavior in 61b5aa1895dd4eab26c7e45fcc8e69f0c408cbab From pull request #31579 --- src/Illuminate/Cache/FileStore.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Cache/FileStore.php b/src/Illuminate/Cache/FileStore.php index 30a51595e759..c392fc3ee910 100755 --- a/src/Illuminate/Cache/FileStore.php +++ b/src/Illuminate/Cache/FileStore.php @@ -44,7 +44,7 @@ public function __construct(Filesystem $files, $directory, $filePermission = nul { $this->files = $files; $this->directory = $directory; - $this->filePermission = $filePermission ?? 0775; + $this->filePermission = $filePermission; } /** @@ -75,7 +75,9 @@ public function put($key, $value, $seconds) ); if ($result !== false && $result > 0) { - $this->files->chmod($path, $this->filePermission); + if (! is_null($this->filePermission)) { + $this->files->chmod($path, $this->filePermission); + } return true; } From fd495918e375654b6d0a6e3d92025716fbcd6b35 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Wed, 26 Feb 2020 08:09:22 +0000 Subject: [PATCH 2/2] Update FileStore.php --- src/Illuminate/Cache/FileStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Cache/FileStore.php b/src/Illuminate/Cache/FileStore.php index c392fc3ee910..d7e3a2e21c1e 100755 --- a/src/Illuminate/Cache/FileStore.php +++ b/src/Illuminate/Cache/FileStore.php @@ -28,7 +28,7 @@ class FileStore implements Store /** * Octal representation of the cache file permissions. * - * @var int + * @var int|null */ protected $filePermission;