Skip to content

Commit

Permalink
Merge pull request #521 from WyriHaximus/drop-php-7-support
Browse files Browse the repository at this point in the history
Drop PHP 7 support
  • Loading branch information
WyriHaximus committed Dec 28, 2021
2 parents b63be75 + 7713374 commit a16c042
Show file tree
Hide file tree
Showing 4 changed files with 626 additions and 304 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -120,6 +120,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: pcov
extensions: intl, sodium
- uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.composer }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -57,10 +57,10 @@ unit-testing-raw: ## Run tests ###
test -n "$(COVERALLS_REPO_TOKEN)" && test -n "$(COVERALLS_RUN_LOCALLY)" && test -f ./var/tests-unit-clover-coverage.xml && ./vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true

mutation-testing: ## Run mutation testing
$(DOCKER_RUN) vendor/bin/roave-infection-static-analysis-plugin --ansi --min-msi=100 --min-covered-msi=100 --threads=$(THREADS) --ignore-msi-with-no-mutations --psalm-config etc/qa/psalm.xml || vendor/bin/roave-infection-static-analysis-plugin --ansi --min-msi=100 --min-covered-msi=100 --threads=$(THREADS) --ignore-msi-with-no-mutations || (cat ./var/infection.log && false)
$(DOCKER_RUN) vendor/bin/roave-infection-static-analysis-plugin --ansi --min-msi=100 --min-covered-msi=100 --threads=$(THREADS) --ignore-msi-with-no-mutations --psalm-config etc/qa/psalm.xml || (cat ./var/infection.log && false)

mutation-testing-raw: ## Run mutation testing ###
php vendor/roave/infection-static-analysis-plugin/bin/roave-infection-static-analysis-plugin --ansi --min-msi=100 --min-covered-msi=100 --threads=$(THREADS) --ignore-msi-with-no-mutations --psalm-config etc/qa/psalm.xml || php vendor/roave/infection-static-analysis-plugin/bin/roave-infection-static-analysis-plugin --ansi --min-msi=100 --min-covered-msi=100 --threads=$(THREADS) --ignore-msi-with-no-mutations || (cat ./var/infection.log && false)
php vendor/roave/infection-static-analysis-plugin/bin/roave-infection-static-analysis-plugin --ansi --min-msi=100 --min-covered-msi=100 --threads=$(THREADS) --ignore-msi-with-no-mutations --psalm-config etc/qa/psalm.xml || (cat ./var/infection.log && false)

composer-require-checker: ## Ensure we require every package used in this package directly
$(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=./etc/qa/composer-require-checker.json
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Expand Up @@ -9,11 +9,11 @@
}
],
"require": {
"php": "^8 || ^7.4",
"php": "^8",
"dereuromark/composer-prefer-lowest": "^0.1.10",
"ergebnis/composer-normalize": "^2.18.0",
"icanhazstring/composer-unused": "^0.7.10",
"infection/infection": "^0.20.2 || ^0.25.5",
"icanhazstring/composer-unused": "^0.7.11",
"infection/infection": "^0.25.5",
"jakobbuis/simple-slow-test-reporter": "^1.0",
"maglnet/composer-require-checker": "^3.8.0",
"nunomaduro/collision": "^5.10.0",
Expand All @@ -26,13 +26,13 @@
"phpstan/phpstan": "^1.2.0",
"phpunit/phpunit": "^9.5.11",
"psalm/plugin-phpunit": "^0.16.1",
"roave/backward-compatibility-check": "^5 || ^6",
"roave/infection-static-analysis-plugin": "^1.7.1",
"roave/backward-compatibility-check": "^6",
"roave/infection-static-analysis-plugin": "^1.13.0",
"squizlabs/php_codesniffer": "^3.6.2",
"thecodingmachine/safe": "^1.3.3",
"vimeo/psalm": "^4.16.1",
"wyrihaximus/coding-standard": "^2.7.0",
"wyrihaximus/phpstan-rules-wrapper": "^2 || ^1.2.5"
"wyrihaximus/phpstan-rules-wrapper": "^2"
},
"autoload": {
"psr-4": {
Expand All @@ -53,7 +53,7 @@
"infection/extension-installer": true
},
"platform": {
"php": "7.4.7"
"php": "8.0.12"
},
"sort-packages": true
},
Expand Down

0 comments on commit a16c042

Please sign in to comment.