Skip to content

Commit

Permalink
Drop support for PHP < 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche authored and jmsche committed Dec 5, 2023
1 parent e4c17c6 commit b4e9eb8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs-material
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ on:
jobs:
php-cs-fixer:
name: PHP CS Fixer (PHP ${{ matrix.php-version }})
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
php-version:
- '8.1'
- '8.3'

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -28,7 +28,7 @@ jobs:
tools: cs2pr

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2

- name: Run PHP CS Fixer
run: 'vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr'
17 changes: 7 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@ on:
jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }})
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}

strategy:
matrix:
php-version:
- '8.1'
- '8.2'
- '8.3'
symfony-version:
- '5.4.*'
- '6.3.*'
include:
- php-version: '8.0'
symfony-version: '5.4.*'
- '6.4.*'

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -43,11 +40,11 @@ jobs:
composer global require --no-progress --no-scripts --no-plugins symfony/flex
- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2

- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v2
if: matrix.php-version == '8.0' && matrix.symfony-version == '5.4.*'
uses: codecov/codecov-action@v3
if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*'
8 changes: 4 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ on:
jobs:
phpstan:
name: PHPStan (PHP ${{ matrix.php-version }})
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
php-version:
- '8.1'
- '8.3'

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -28,7 +28,7 @@ jobs:
tools: cs2pr

- name: Install Composer dependencies
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2

- name: Run PHPStan
run: 'vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr'
2 changes: 1 addition & 1 deletion CHANGELOG-5.x.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
5.0.0
-----


* Drop support for PHP < 8.1
2 changes: 1 addition & 1 deletion UPGRADE-5.x.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Upgrade from 4.x to 5.x
-----------------------


* Drop support for PHP < 8.1
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"php": "^8.2",
"ext-curl": "*",
"doctrine/orm": "^2.5",
"leapt/core-bundle": "^4.0",
Expand Down
7 changes: 6 additions & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
ignoreErrors:
-
message: "#^Cannot call method end\\(\\) on Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeParentInterface\\|null\\.$#"
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeParentInterface\\:\\:end\\(\\)\\.$#"
count: 1
path: src/DependencyInjection/Configuration.php

Expand Down Expand Up @@ -75,3 +75,8 @@ parameters:
count: 3
path: tests/ManagerTest.php

-
message: "#^Method Leapt\\\\ImBundle\\\\Tests\\\\Mock\\\\Process\\:\\:run\\(\\) overrides @final method Symfony\\\\Component\\\\Process\\\\Process\\:\\:run\\(\\)\\.$#"
count: 1
path: tests/Mock/Process.php

0 comments on commit b4e9eb8

Please sign in to comment.