Skip to content

Commit

Permalink
Add explicit paths for included files
Browse files Browse the repository at this point in the history
Fixes #2757
  • Loading branch information
muglug committed Feb 7, 2020
1 parent 966336a commit 4e36f6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@
$options = getopt(implode('', $valid_short_options), $valid_long_options);

if (isset($options['alter'])) {
include 'psalter.php';
require_once __DIR__ . '/psalter.php';
exit;
}

if (isset($options['language-server'])) {
include 'psalm-language-server.php';
require_once __DIR__ . '/psalm-language-server.php';
exit;
}

if (isset($options['refactor'])) {
include 'psalm-refactor.php';
require_once __DIR__ . '/psalm-refactor.php';
exit;
}

Expand Down

0 comments on commit 4e36f6c

Please sign in to comment.