Skip to content

fix phpstan errors #165

fix phpstan errors

fix phpstan errors #165

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
jobs:
php83:
name: "php 8.3"
runs-on: ubuntu-latest
container: "nofutur3/php-tests:8.3"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tools
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
- name: Install dependencies
run: composer install --no-interaction
- name: Chesk code style
run: tools/php-cs-fixer fix --dry-run --no-interaction --show-progress=none
- name: Run static analysis
run: vendor/bin/phpstan analyse --no-progress
- name: Run tests
run: tools/phpunit test/ --bootstrap vendor/autoload.php
php82:
name: "php 8.2"
runs-on: ubuntu-latest
container: "nofutur3/php-tests:8.2"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install tools
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
- name: Install dependencies
run: composer install --no-interaction
- name: Run static analysis
run: vendor/bin/phpstan analyse --no-progress
- name: Run tests
run: tools/phpunit test/ --bootstrap vendor/autoload.php
php81:
name: "php 8.1"
runs-on: ubuntu-latest
container: "nofutur3/php-tests:8.1"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: composer install --no-interaction
- name: Run static analysis
run: vendor/bin/phpstan analyse --no-progress
- name: Run tests
run: vendor/bin/phpunit test/