Skip to content

Commit

Permalink
Merge pull request #5 from infection/php-8-support
Browse files Browse the repository at this point in the history
PHP 8 support
  • Loading branch information
maks-rafalko authored Jan 16, 2021
2 parents d30cd75 + 7df0925 commit 49853c9
Show file tree
Hide file tree
Showing 13 changed files with 2,182 additions and 910 deletions.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ return Config::create()
'case' => 'snake',
'style' => 'prefix',
],
'protected_to_private' => false,
'self_static_accessor' => true,
'single_line_throw' => false,
'static_lambda' => true,
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: php
php:
- 7.3
- 7.4
- nightly

Expand All @@ -14,7 +13,7 @@ jobs:
- php: nightly
include:
- stage: analyze
php: 7.3
php: 7.4
install:
- phpenv config-rm xdebug.ini
- pecl install ast
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ COMPOSER=$(PHP) $(shell which composer)

# Infection
INFECTION=vendor/bin/infection
MIN_MSI=52.678571428571
MIN_COVERED_MSI=96
MIN_MSI=52.212389380531
MIN_COVERED_MSI=95
INFECTION_ARGS=--min-msi=$(MIN_MSI) --min-covered-msi=$(MIN_COVERED_MSI) --threads=$(JOBS) --log-verbosity=default --show-mutations

all: test
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"sort-packages": true
},
"require": {
"php": "^7.3",
"infection/abstract-testframework-adapter": "^0.3.0",
"php": "^7.4 || ^8.0",
"infection/abstract-testframework-adapter": "^0.3.1",
"infection/include-interceptor": "^0.2.3",
"symfony/filesystem": "^3.4.29 || ^4.0 || ^5.0",
"symfony/process": "^3.4.29 || ^4.0 || ^5.0",
Expand All @@ -39,16 +39,16 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"infection/infection": "^0.15.2",
"php-coveralls/php-coveralls": "^2.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.10",
"phpstan/phpstan-phpunit": "^0.12.6",
"phpstan/phpstan-strict-rules": "^0.12.2",
"phpstan/phpstan-webmozart-assert": "^0.12.2",
"friendsofphp/php-cs-fixer": "^2.17",
"infection/infection": "^0.20.2",
"php-coveralls/php-coveralls": "^2.4",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.66",
"phpstan/phpstan-phpunit": "^0.12.17",
"phpstan/phpstan-strict-rules": "^0.12.8",
"phpstan/phpstan-webmozart-assert": "^0.12.8",
"phpunit/phpunit": "^8.5",
"thecodingmachine/safe": "^0.1.16",
"vimeo/psalm": "^3.8"
"thecodingmachine/safe": "^1.3",
"vimeo/psalm": "^4.4"
}
}
Loading

0 comments on commit 49853c9

Please sign in to comment.