From 8b58167ed9838adb54c7f91c0e6aca7483c70527 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Tue, 29 Dec 2020 18:04:18 +0100 Subject: [PATCH] Remove phpstan configuration for loading WordPress [MAILPOET-2837] --- RoboFile.php | 3 --- tasks/phpstan/phpstan-wp-source.neon | 4 ---- 2 files changed, 7 deletions(-) delete mode 100644 tasks/phpstan/phpstan-wp-source.neon diff --git a/RoboFile.php b/RoboFile.php index a93ee3abcc..6c39ea8df5 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -509,9 +509,6 @@ class RoboFile extends \Robo\Tasks { // temp dir ->taskExec('mkdir -p ' . __DIR__ . '/temp') ->taskExec('rm -rf ' . __DIR__ . '/temp/phpstan') - // Generate config with correct path to WP source - ->taskExec("cp -rf $dir/tasks/phpstan/phpstan-wp-source.neon $dir/tasks/phpstan/_phpstan-wp-source.neon") - ->taskExec("sed -i 's+WP_ROOT+" . getenv('WP_ROOT') . "+g' $dir/tasks/phpstan/_phpstan-wp-source.neon") // lib ->taskExec($task) ->arg("$dir/lib") diff --git a/tasks/phpstan/phpstan-wp-source.neon b/tasks/phpstan/phpstan-wp-source.neon deleted file mode 100644 index a5c8b7efde..0000000000 --- a/tasks/phpstan/phpstan-wp-source.neon +++ /dev/null @@ -1,4 +0,0 @@ -parameters: - scanDirectories: - - WP_ROOT/wp-includes - - WP_ROOT/wp-admin/includes/