Skip to content

Commit

Permalink
chore: drop PHP 5.x support (#371)
Browse files Browse the repository at this point in the history
* chore: drop PHP 5.x support

* extend PHP CS Fixer to use PHP70Migration
  • Loading branch information
keradus committed Nov 22, 2023
1 parent 9e88d7d commit 6a89b48
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,9 @@ jobs:
fail-fast: false
matrix:
include:
- php: '5.5'
os: ubuntu-latest
composer-flags: '--prefer-lowest'
coverage: 'xdebug'
- php: '5.5'
os: ubuntu-latest
symfony: '^3.0'
- php: '5.5'
os: windows-latest
coverage: 'xdebug'
- php: '5.6'
os: ubuntu-latest
- php: '7.0'
os: ubuntu-latest
composer-flags: '--prefer-lowest'
- php: '7.1'
os: ubuntu-latest
symfony: '^4.0'
Expand Down Expand Up @@ -136,11 +125,9 @@ jobs:
extensions: phar, openssl, sodium
coverage: none
ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1
# Autoload files generated with Composer 2.3+ are not compatible with PHP < 7.0.
tools: composer:2.2

- name: Set Composer platform
run: composer config platform.php 5.5.0
run: composer config platform.php 7.0.0

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
Expand Down Expand Up @@ -177,7 +164,6 @@ jobs:
fail-fast: false
matrix:
include:
- php: '5.5'
- php: '7.2'
- php: '8.0'
- php: '8.3'
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
->setRules([
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP70Migration' => true,
'yoda_style' => [
'equal' => false,
'identical' => false,
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ PHP client library for [Coveralls](https://coveralls.io).

# Prerequisites

- PHP 5.5+ for 2.x or 5.3+ for 1.x
- PHP 7+ for 2.7+
- PHP 5.5+ for 2.x
- PHP 5.3+ for 1.x
- On [GitHub](https://github.com/)
- Building on [Travis CI](http://travis-ci.org/), [CircleCI](https://circleci.com/), [Jenkins](http://jenkins-ci.org/), [Codeship](https://www.codeship.io/) or [GitHub Actions](https://github.com/features/actions)
- Testing by [PHPUnit](https://github.com/sebastianbergmann/phpunit/) or other testing framework that can generate clover style coverage report
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
],
"require": {
"php": "^5.5 || ^7.0 || ^8.0",
"php": "^7.0 || ^8.0",
"ext-json": "*",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
Expand Down

0 comments on commit 6a89b48

Please sign in to comment.