diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index c30f2d2..a9b8371 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -32,6 +32,9 @@ jobs: - name: Setup dependencies run: composer require -n --no-progress overtrue/phplint + && git clone --single-branch --branch master https://github.com/Icinga/icingaweb2.git vendor/icingaweb2 + && git clone --single-branch --branch snapshot/nightly https://github.com/Icinga/icinga-php-library.git vendor/icinga-php-library + && git clone --single-branch --branch snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git vendor/icinga-php-thirdparty - name: PHP Lint if: success() || matrix.allow_failure @@ -40,3 +43,7 @@ jobs: - name: PHP CodeSniffer if: success() || matrix.allow_failure run: phpcs -wps --colors + + - name: PHPStan + uses: php-actions/phpstan@v3 + if: success() || matrix.allow_failure diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..e8519a8 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,9 @@ +parameters: + level: 1 + paths: + - application + - library + scanDirectories: + - vendor + ignoreErrors: + - '#Unsafe usage of new static\(\)#' \ No newline at end of file