Skip to content

fix: undefined array key 'context' warning in Gutenberg.php (PHP 8+) #701

fix: undefined array key 'context' warning in Gutenberg.php (PHP 8+)

fix: undefined array key 'context' warning in Gutenberg.php (PHP 8+) #701

Workflow file for this run

name: PHPUnit tests
permissions:
contents: read
on: pull_request
jobs:
phpunit:
name: phpunit
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.0', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: npm install
run: npm install
- name: composer install
run: cd ./wp/headless-wp && composer install --ignore-platform-reqs
- name: Run tests
run: npm run test:php -w=wp/headless-wp