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
8686 * @return false|string
8787 *
8888 * @noinspection PhpParameterNameChangedDuringInheritanceInspection
89+ * @noinspection PhpStatementHasEmptyBodyInspection
8990 */
9091 public function findFile ($ namespacedClass ): false |string
9192 {
Original file line number Diff line number Diff line change @@ -89,8 +89,14 @@ public function register(): void
8989 */
9090 private function initializeCacheDirectory (): void
9191 {
92+ $ cacheDir = $ this ->options ->getCacheDir ();
93+
94+ if (file_exists ($ cacheDir )) {
95+ return ;
96+ }
97+
9298 Filesystem::mkdir (
93- $ this -> options -> getCacheDir () ,
99+ $ cacheDir ,
94100 $ this ->options ->getCacheFileMode (),
95101 recursive: true ,
96102 );
You can’t perform that action at this time.
0 commit comments