diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 7b8bf8f..4d6404a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: operating-system: ['ubuntu-latest'] - php-versions: ['7.4', '8.0', '8.1', '8.2'] + php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] steps: - uses: actions/checkout@v4 @@ -30,8 +30,11 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress - - name: Install dependencies + - name: Run tests run: vendor/bin/phpunit + - name: Run static code analysis + run: vendor/bin/phpstan --xdebug analyse + if: always() diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..364905f --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,2 @@ +parameters: + ignoreErrors: diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..ba8c92e --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,9 @@ +includes: + - phpstan-baseline.neon +parameters: + level: 1 + paths: + - src + - tests + bootstrapFiles: + - stan_autoload.php diff --git a/stan_autoload.php b/stan_autoload.php new file mode 100644 index 0000000..a1026de --- /dev/null +++ b/stan_autoload.php @@ -0,0 +1,4 @@ +