Skip to content

[PHP 8.4] Fixes for implicit nullability deprecation #5116

[PHP 8.4] Fixes for implicit nullability deprecation

[PHP 8.4] Fixes for implicit nullability deprecation #5116

Workflow file for this run

name: build
on: [push, pull_request]
env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi"
EXTENSIONS: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached, pdo, pdo_sqlite, sqlite
PHPUNIT_EXCLUDE_GROUP: db,wincache
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpunit:
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
steps:
- name: Generate french locale.
run: sudo locale-gen fr_FR.UTF-8
- name: Checkout.
uses: actions/checkout@v4
- name: Install PHP.
uses: shivammathur/setup-php@v2
with:
coverage: pcov
extensions: ${{ env.EXTENSIONS }}
ini-values: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC', session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}
tools: pecl
- name: Install Memcached.
uses: niden/actions-memcached@v7
- name: Install dependencies.
run: composer update $DEFAULT_COMPOSER_FLAGS
- name: Run tests with PHPUnit and generate coverage.
if: matrix.php == '8.1'
run: vendor/bin/phpunit --coverage-clover=coverage.xml --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always --verbose
- name: Run tests with PHPUnit.
if: matrix.php != '8.1'
run: vendor/bin/phpunit --exclude-group $PHPUNIT_EXCLUDE_GROUP --colors=always --verbose
- name: Upload coverage to Codecov.
if: matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml