Skip to content

Revert change to ArrayLogger #4

Revert change to ArrayLogger

Revert change to ArrayLogger #4

---

Check failure on line 1 in .github/workflows/reusable_phplinter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable_phplinter.yml

Invalid workflow file

(Line: 46, Col: 11): 'tools' is already defined
on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
php-version:
description: 'The PHP-version to use for linting'
type: string
required: true
repository:
description: 'The repository that needs linting'
type: string
required: false
default: ${{ github.repository }}
ref:
description: 'The branch, tag or SHA that needs linting'
type: string
required: false
default: ${{ github.ref }}
env:
supported: '["8.3", "8.4", "8.5"]'
jobs:
linter:
runs-on: ubuntu-latest
steps:
- name: Supported version check
if: contains(fromJSON(env.supported), inputs.php-version) == false
run: exit 1
- name: Checkout Code
uses: actions/checkout@v6
with:
fetch-depth: 0
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- name: Setup PHP runtime
uses: shivammathur/setup-php@v2
with:
tools: phive
php-version: ${{ inputs.php-version }}
coverage: "none"
tools: composer
# A conflict exists between overtrue/phplint and redis
extensions: :redis
- name: Install overtrue/phplint (v9.7)
run: composer require overtrue/phplint
- name: Lint PHP files
run: vendor/bin/phplint --no-cache --no-progress -v