From 1b0158ad725cb76c765d3d58a88fa03c9c82e50f Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sat, 1 Jun 2019 15:26:22 +0300 Subject: [PATCH] Fixed vimeo/psalm#1714 (#1715) * Fixed vimeo/psalm#1714 Moved `isAbsolutePath()` into a functions file (`src/functions.php`) that is now automatically loaded by composer autoload. /cc: @jwage * Dropped redundant bootstrap --- composer.json | 5 ++++- phpunit.xml.dist | 2 +- src/Psalm/Config.php | 2 ++ src/command_functions.php | 29 ----------------------------- src/functions.php | 29 +++++++++++++++++++++++++++++ tests/IsAbsolutePathTest.php | 2 -- tests/bootstrap.php | 5 ----- 7 files changed, 36 insertions(+), 38 deletions(-) create mode 100644 src/functions.php delete mode 100644 tests/bootstrap.php diff --git a/composer.json b/composer.json index 0b18e94b5..016fadd75 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,10 @@ "psr-4": { "Psalm\\Plugin\\": "src/Psalm/Plugin", "Psalm\\": "src/Psalm" - } + }, + "files": [ + "src/functions.php" + ] }, "autoload-dev": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 13a9c46e7..fa6da4604 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,7 @@