From c15b5d5159ef879f0707c33cc9a3fe993618edd1 Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Wed, 10 Mar 2021 13:17:03 +0100 Subject: [PATCH] Use getcwd() when looking for wordpress-stubs --- Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index f1800cc..cd0df31 100644 --- a/Plugin.php +++ b/Plugin.php @@ -49,7 +49,7 @@ public function __invoke( RegistrationInterface $registration, ?SimpleXMLElement private function getStubFiles(): array { return [ - __DIR__ . '/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php', + getcwd() . '/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php', __DIR__ . '/stubs/overrides.php', ]; }