File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ public function loadClass($namespacedClass): bool
86
86
* @return false|string
87
87
*
88
88
* @noinspection PhpParameterNameChangedDuringInheritanceInspection
89
+ * @noinspection PhpStatementHasEmptyBodyInspection
89
90
*/
90
91
public function findFile ($ namespacedClass ): false |string
91
92
{
Original file line number Diff line number Diff line change @@ -89,8 +89,14 @@ public function register(): void
89
89
*/
90
90
private function initializeCacheDirectory (): void
91
91
{
92
+ $ cacheDir = $ this ->options ->getCacheDir ();
93
+
94
+ if (file_exists ($ cacheDir )) {
95
+ return ;
96
+ }
97
+
92
98
Filesystem::mkdir (
93
- $ this -> options -> getCacheDir () ,
99
+ $ cacheDir ,
94
100
$ this ->options ->getCacheFileMode (),
95
101
recursive: true ,
96
102
);
You can’t perform that action at this time.
0 commit comments