Skip to content

Add rule to detect implicit nullable default values #10

Add rule to detect implicit nullable default values

Add rule to detect implicit nullable default values #10

Workflow file for this run

name: Test URL
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
test:
name: PHP ${{ matrix.php }} ${{ matrix.php-jit == 1255 && 'with' || 'without' }} JIT on ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
container: shivammathur/node:latest-${{ matrix.arch }}
continue-on-error: ${{ matrix.php == 'nightly' }}
defaults:
run:
shell: bash
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
arch:
- amd64
- i386
php:
- 8.1
- 8.2
- 8.3
php-jit:
- disable
- 1255
include:
- php: nightly
os: ubuntu-latest
arch: amd64
php-jit: disable
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, opcache, pcre, gmp
ini-values: zend.assertions=1, opcache.enable_cli=1, opcache.memory_consumption=256, opcache.jit=${{ matrix.php-jit }}, opcache.jit_buffer_size=256M
coverage: none
env:
fail-fast: true
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: |
if [[ ${{ matrix.php == 'nightly' }} ]]; then
composer update --no-interaction --ignore-platform-reqs
else
composer update --no-interaction
fi
- name: Run PHPCS
run: vendor/bin/phpcs
- name: Run PHPStan
run: vendor/bin/phpstan
- name: Run Tests
run: vendor/bin/phpunit