Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit bd04ffd

Browse files
committed
php min version 7.4
1 parent 1abffb7 commit bd04ffd

File tree

5 files changed

+21
-39
lines changed

5 files changed

+21
-39
lines changed

.travis.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dist: bionic
1+
dist: focal
22

33
language: php
44

@@ -11,19 +11,13 @@ git:
1111

1212
matrix:
1313
include:
14-
- php: 7.2
15-
env: composerargs="--prefer-lowest"
16-
- php: 7.2
17-
- php: 7.3
18-
env: composerargs="--prefer-lowest"
19-
- php: 7.3
2014
- php: 7.4
2115
env: composerargs="--prefer-lowest"
2216
- php: 7.4
23-
- php: nightly
17+
# - php: 8.0
18+
# env: composerargs="--prefer-lowest --ignore-platform-reqs"
19+
- php: 8.0
2420
env: composerargs="--ignore-platform-reqs"
25-
allow_failures:
26-
- php: nightly
2721

2822
before_script:
2923
- (phpenv config-rm xdebug.ini || exit 0)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A simple http handler implementation for API.
2525

2626
## Requirements
2727

28-
* php: ^7.2|^8.0
28+
* php: ^7.4|^8.0
2929
* chubbyphp/chubbyphp-deserialization: ^3.0
3030
* chubbyphp/chubbyphp-negotiation: ^1.7
3131
* chubbyphp/chubbyphp-serialization: ^3.0
@@ -39,7 +39,7 @@ A simple http handler implementation for API.
3939
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-api-http][1].
4040

4141
```sh
42-
composer require chubbyphp/chubbyphp-api-http "^4.0"
42+
composer require chubbyphp/chubbyphp-api-http "^4.1"
4343
```
4444

4545
## Usage

composer.json

+7-12
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.2|^8.0",
13+
"php": "^7.4|^8.0",
1414
"chubbyphp/chubbyphp-deserialization": "^3.0",
1515
"chubbyphp/chubbyphp-negotiation": "^1.7",
1616
"chubbyphp/chubbyphp-serialization": "^3.0",
@@ -23,19 +23,16 @@
2323
"chubbyphp/chubbyphp-container": "^1.1",
2424
"chubbyphp/chubbyphp-dev-helper": "dev-master",
2525
"chubbyphp/chubbyphp-laminas-config-factory": "^1.0",
26-
"chubbyphp/chubbyphp-mock": "^1.5.1",
27-
"infection/infection": "^0.15.3|^0.18.2|^0.20.2",
26+
"chubbyphp/chubbyphp-mock": "^1.6",
27+
"infection/infection": "^0.20.2",
2828
"php-coveralls/php-coveralls": "^2.4.3",
29-
"phploc/phploc": "^5.0|^6.0.2",
29+
"phploc/phploc": "^6.0.2",
3030
"phpstan/extension-installer": "^1.1",
3131
"phpstan/phpstan": "^0.12.64",
32-
"phpunit/phpunit": "^8.5.13|^9.5",
32+
"phpunit/phpunit": "^9.5",
3333
"pimple/pimple": "^3.3",
3434
"psr/container": "^1.0"
3535
},
36-
"conflict": {
37-
"composer/composer": "<1.10.16"
38-
},
3936
"autoload": {
4037
"psr-4": { "Chubbyphp\\ApiHttp\\": "src/" }
4138
},
@@ -47,7 +44,7 @@
4744
},
4845
"extra": {
4946
"branch-alias": {
50-
"dev-master": "4.0-dev"
47+
"dev-master": "4.1-dev"
5148
}
5249
},
5350
"scripts": {
@@ -59,12 +56,10 @@
5956
"@test:infection",
6057
"@test:static-analysis",
6158
"@test:loc",
62-
"@test:cs",
63-
"@test:insights"
59+
"@test:cs"
6460
],
6561
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
6662
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
67-
"test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse -v --no-interaction --min-quality=95 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
6863
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
6964
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
7065
"test:loc": "mkdir -p build && vendor/bin/phploc src --verbose | tee build/phploc.log",

phpinsights.php

-8
This file was deleted.

phpunit.xml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
34
backupStaticAttributes="false"
45
colors="true"
56
convertErrorsToExceptions="true"
@@ -8,7 +9,12 @@
89
executionOrder="random"
910
processIsolation="false"
1011
stopOnFailure="false"
11-
>
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
13+
<coverage>
14+
<include>
15+
<directory>./src</directory>
16+
</include>
17+
</coverage>
1218
<testsuites>
1319
<testsuite name="Integration">
1420
<directory>./tests/Integration</directory>
@@ -17,9 +23,4 @@
1723
<directory>./tests/Unit</directory>
1824
</testsuite>
1925
</testsuites>
20-
<filter>
21-
<whitelist>
22-
<directory>./src</directory>
23-
</whitelist>
24-
</filter>
2526
</phpunit>

0 commit comments

Comments
 (0)