Skip to content

Commit a3bbb60

Browse files
authored
Drop old PHP versions (#26)
* Drop old PHP versions * Add changelog * Apply CS fixes * Minors
1 parent 6194c93 commit a3bbb60

18 files changed

Lines changed: 158 additions & 177 deletions

.gitattributes

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
.editorconfig export-ignore
2-
.gitattributes export-ignore
3-
/.github/ export-ignore
4-
.gitignore export-ignore
5-
/.php_cs export-ignore
6-
/.scrutinizer.yml export-ignore
7-
/.styleci.yml export-ignore
8-
/.travis.yml export-ignore
9-
/behat.yml.dist export-ignore
10-
/features/ export-ignore
11-
/phpunit.xml.dist export-ignore
12-
/Tests/ export-ignore
1+
.editorconfig export-ignore
2+
.gitattributes export-ignore
3+
/.github/ export-ignore
4+
.gitignore export-ignore
5+
/.php_cs export-ignore
6+
/phpstan.neon.dist export-ignore
7+
/phpstan-baseline.neon export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/tests/ export-ignore

.github/workflows/checks.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Static code analysis
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
phpstan:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Run PHPStan
11+
uses: docker://jakzal/phpqa:php7.3-alpine
12+
with:
13+
args: phpstan analyze
14+
15+
php-cs-fixer:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@master
19+
- name: Run PHP-CS-Fixer
20+
uses: docker://jakzal/phpqa:php7.3-alpine
21+
with:
22+
args: php-cs-fixer fix --dry-run --diff-format udiff -vvv
23+
24+
roave-bc-check:
25+
name: Roave BC Check
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v2
31+
32+
- name: Roave BC Check
33+
uses: docker://nyholm/roave-bc-check-ga

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
name: Test
9+
runs-on: Ubuntu-20.04
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php: [ '7.2', '7.3', '7.4', '8.0' ]
14+
strategy: [ 'highest' ]
15+
include:
16+
- php: 7.4
17+
strategy: 'lowest'
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Set up PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
coverage: none
28+
29+
- name: Download dependencies
30+
uses: ramsey/composer-install@v1
31+
with:
32+
dependency-versions: ${{ matrix.strategy }}
33+
composer-options: --no-interaction --prefer-dist --optimize-autoloader
34+
35+
- name: Run tests
36+
run: ./vendor/bin/phpunit
37+

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/behat.yml
2-
/build/
1+
/.php_cs.cache
32
/composer.lock
4-
/phpspec.yml
53
/phpunit.xml
64
/vendor/

.php_cs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<?php
22

3-
/*
4-
* In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
5-
* with composer.
6-
*
7-
* @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
8-
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
9-
*/
3+
$config = PhpCsFixer\Config::create()
4+
->setRiskyAllowed(true)
5+
->setRules([
6+
'@Symfony' => true,
7+
'@Symfony:risky' => true,
8+
])
9+
->setFinder(
10+
PhpCsFixer\Finder::create()
11+
->in(__DIR__)
12+
->exclude(__DIR__.'/vendor')
13+
->name('*.php')
14+
)
15+
;
1016

11-
use SLLH\StyleCIBridge\ConfigBridge;
12-
13-
return ConfigBridge::create();
17+
return $config;

.scrutinizer.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.styleci.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

Changelog.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
# Change Log
22

3-
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
3+
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
4+
5+
## 1.2.0
6+
7+
### Added
8+
9+
- Support for PHP 8
10+
11+
### Removed
12+
13+
- Support for PHP < 7.2
414

515
## 1.1.0
616

7-
### Added
17+
### Added
818

919
- Bing Translator
1020
- Support for HTTPlug 2.0

0 commit comments

Comments
 (0)