Skip to content

feat: support php 8.5 + drop 8.1 #589

feat: support php 8.5 + drop 8.1

feat: support php 8.5 + drop 8.1 #589

Workflow file for this run

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: PHP Analysis
jobs:
analyze:
name: 🔍 Analyze
runs-on: ubuntu-latest
strategy:
matrix:
php: [ 8.2, 8.3, 8.4, 8.5 ]
env:
PHP_CS_FIXER_IGNORE_ENV: 1 # Remove when PHP 8.4 is officially supported by PHP CS Fixer
steps:
- uses: actions/checkout@v5
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPStan
run: composer phpstan
- name: Run PHP-CS-Fixer
run: composer cs
bc_check:
name: 🕵🏼 Check Backwards Compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install dependencies
run: composer require --dev roave/backward-compatibility-check
- name: Run backwards compatibility check
run: vendor/bin/roave-backward-compatibility-check