Skip to content

Commit

Permalink
Use getcwd() when looking for wordpress-stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle authored Mar 10, 2021
1 parent 578b4d2 commit c15b5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}
Expand Down

0 comments on commit c15b5d5

Please sign in to comment.