Skip to content

Commit 4893c92

Browse files
rfeinerclaude
andcommitted
Fix CI for PHP 8.0+ minimum version
- Replace Docker-based Psalm action (bundles PHP 7.4) with setup-php - Drop PHP 7.4 from test matrix - Set phpVersion in psalm.xml for PHP 8.0+ analysis Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0e88635 commit 4893c92

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/psalm.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
name: Psalm
22

3-
# Controls when the action will run.
43
on: [push, pull_request]
54

6-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
75
jobs:
8-
# This workflow contains a single job called "build"
9-
build:
10-
# The type of runner that the job will run on
6+
psalm:
117
runs-on: ubuntu-latest
128

13-
# Steps represent a sequence of tasks that will be executed as part of the job
149
steps:
15-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1610
- uses: actions/checkout@v3
1711

18-
- name: Psalm – Static Analysis for PHP
19-
uses: docker://vimeo/psalm-github-actions:4.18.1
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.0'
16+
extensions: curl, json
17+
tools: composer:v2
18+
19+
- name: Install dependencies
20+
run: composer install --no-progress
21+
22+
- name: Run Psalm
23+
run: vendor/bin/psalm --no-progress

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
14+
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
1515
stability: [ prefer-stable ]
1616

1717
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="7"
4+
phpVersion="8.0"
45
resolveFromConfigFile="true"
56
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
67
xmlns="https://getpsalm.org/schema/config"

0 commit comments

Comments
 (0)