Skip to content

Commit a9fb8d5

Browse files
committed
Minor changes
1 parent af602d3 commit a9fb8d5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Core/AutoloadInterceptor/ClassLoader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
{

src/Core/Cache/CacheStateManager.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)