From 76775d29b3851482ada4ef34955c2aaaa54f4afc Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Fri, 24 Jul 2020 20:54:11 +0200 Subject: [PATCH] Add basic PHPStan support --- .automation/test/php/php_bad_2.php | 4 ++++ .automation/test/php/reports/expected-PHP.tap | 8 +++++-- .../test/php/reports/expected-PHP_PHPSTAN.tap | 11 +++++++++ Dockerfile | 22 +++++++++++++++++- README.md | 1 + TEMPLATES/phpstan.neon | 2 ++ lib/buildFileList.sh | 1 + lib/linter.sh | 23 ++++++++++++++++++- lib/worker.sh | 1 + 9 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 .automation/test/php/php_bad_2.php create mode 100644 .automation/test/php/reports/expected-PHP_PHPSTAN.tap create mode 100644 TEMPLATES/phpstan.neon diff --git a/.automation/test/php/php_bad_2.php b/.automation/test/php/php_bad_2.php new file mode 100644 index 00000000..71559d02 --- /dev/null +++ b/.automation/test/php/php_bad_2.php @@ -0,0 +1,4 @@ +