Skip to content

Fixing 'Using null as an array offset is deprecated, use an empty string instead' deprecation warning #2010

Fixing 'Using null as an array offset is deprecated, use an empty string instead' deprecation warning

Fixing 'Using null as an array offset is deprecated, use an empty string instead' deprecation warning #2010

Workflow file for this run

name: build
on:
schedule:
- cron: "0 13 * * 1"
push:
branches:
- master
- 5.x
pull_request:
branches:
- master
- 5.x
jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: true
matrix:
operating-system: [ ubuntu-latest ]
php: [ '8.2', '8.3', '8.4', '8.5', '8.6' ]
dependencies: [ 'lowest', 'highest' ]
name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies
steps:
- uses: actions/checkout@v6
name: Checkout repository
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
- name: Composer install
uses: ramsey/composer-install@v4
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: "${{ matrix.composer-options }}"
- name: PHPUnit Tests
run: bin/phpunit --configuration phpunit.xml.dist --coverage-text