diff --git a/.gitignore b/.gitignore index 594ca0ac..356ea639 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ composer.phar /vendor/ composer.lock -src/cache/*.stubphp +cache/*.stubphp .DS_Store diff --git a/src/cache/README.md b/cache/README.md similarity index 100% rename from src/cache/README.md rename to cache/README.md diff --git a/psalm.xml b/psalm.xml index 12f41c29..40d8a990 100644 --- a/psalm.xml +++ b/psalm.xml @@ -10,9 +10,8 @@ - + - @@ -27,7 +26,7 @@ - + diff --git a/src/Plugin.php b/src/Plugin.php index 759c2a94..3d1f9f11 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -30,7 +30,7 @@ public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $app = ApplicationProvider::bootApp(); $fake_filesystem = new FakeFilesystem(); $view_factory = $this->getViewFactory($app, $fake_filesystem); - $cache_dir = __DIR__ . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR; + $cache_dir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR; $this->ingestFacadeStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir); $this->ingestMetaStubs($registration, $app, $fake_filesystem, $view_factory, $cache_dir);