Skip to content

Bump PHPStan to level 8; Add more parameter/return typing; README update #19

Bump PHPStan to level 8; Add more parameter/return typing; README update

Bump PHPStan to level 8; Add more parameter/return typing; README update #19

Workflow file for this run

name: PHPStan
on:
- push
- pull_request
jobs:
phpstan:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.lock', '*/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php }}
php_extensions: gd
command: update
- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
path: src/
configuration: phpstan.neon
php_version: ${{ matrix.php }}
php_extensions: gd