Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteee3ec7

Browse files
committed
Drop PHP 7.2
1 parent4325f19 commiteee3ec7

File tree

9 files changed

+24
-217
lines changed

9 files changed

+24
-217
lines changed

‎.github/dependabot.yml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,3 @@ updates:
66
interval:monthly
77
open-pull-requests-limit:10
88
versioning-strategy:increase
9-
ignore:
10-
-dependency-name:symfony/polyfill-php80
11-
versions:
12-
-1.22.0
13-
-dependency-name:phpunit/phpunit
14-
versions:
15-
-8.5.14

‎.github/workflows/tests.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast:false
1212
matrix:
13-
php:[7.2, 7.3, 7.4, 8.0]
13+
php:[7.3, 7.4, 8.0]
1414
experimental:[false]
1515
include:
1616
-php:8.0
@@ -37,7 +37,7 @@ jobs:
3737

3838
-name:Static analysis
3939
if:matrix.analysis
40-
run:vendor/bin/phpstan analyse src
40+
run:vendor/bin/phpstan
4141

4242
-name:Tests
4343
run:vendor/bin/phpunit --coverage-clover clover.xml
@@ -47,5 +47,5 @@ jobs:
4747
env:
4848
COVERALLS_REPO_TOKEN:${{ secrets.GITHUB_TOKEN }}
4949
run:|
50-
composer require php-coveralls/php-coveralls -n
50+
composer require php-coveralls/php-coveralls -n -W
5151
vendor/bin/php-coveralls --coverage_clover=clover.xml -v

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ composer require slim/psr7
1818
```
1919

2020
This will install the`slim/psr7` component and all required dependencies.
21-
PHP 7.2 or newer is required.
21+
PHP 7.3 or newer is required.
2222

2323
##Tests
2424

‎composer.json‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,23 @@
2828
}
2929
],
3030
"require": {
31-
"php":"^7.2 || ^8.0",
31+
"php":"^7.3 || ^8.0",
3232
"fig/http-message-util":"^1.1.5",
3333
"psr/http-factory":"^1.0",
3434
"psr/http-message":"^1.0",
35-
"ralouphie/getallheaders":"^3",
35+
"ralouphie/getallheaders":"^3.0",
3636
"symfony/polyfill-php80":"^1.23"
3737
},
3838
"require-dev": {
3939
"ext-json":"*",
4040
"adriansuter/php-autoload-override":"^1.2",
4141
"http-interop/http-factory-tests":"^0.9.0",
4242
"php-http/psr7-integration-tests":"dev-master",
43-
"phpstan/phpstan":"^0.12",
44-
"phpunit/phpunit":"^8.5 || ^9.5",
45-
"squizlabs/php_codesniffer":"^3.6",
46-
"weirdan/prophecy-shim":"^1.0 || ^2.0.2"
43+
"phpspec/prophecy":"^1.14",
44+
"phpspec/prophecy-phpunit":"^2.0",
45+
"phpstan/phpstan":"^0.12.99",
46+
"phpunit/phpunit":"^9.5",
47+
"squizlabs/php_codesniffer":"^3.6"
4748
},
4849
"provide": {
4950
"psr/http-message-implementation":"1.0",
@@ -67,7 +68,7 @@
6768
],
6869
"phpunit":"phpunit",
6970
"phpcs":"phpcs",
70-
"phpstan":"phpstananalyse src--memory-limit=-1"
71+
"phpstan":"phpstan --memory-limit=-1"
7172
},
7273
"config": {
7374
"sort-packages":true

‎phpstan.neon.dist‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
parameters:
22
level: max
33
checkMissingIterableValueType: false
4+
paths:
5+
- src

‎phpunit.xml.dist‎

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunitxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
54
backupGlobals="true"
6-
backupStaticAttributes="false"
7-
beStrictAboutTestsThatDoNotTestAnything="true"
8-
beStrictAboutChangesToGlobalState="false"
95
beStrictAboutOutputDuringTests="true"
106
colors="true"
11-
convertErrorsToExceptions="true"
12-
convertNoticesToExceptions="true"
13-
convertWarningsToExceptions="true"
14-
processIsolation="false"
15-
stopOnFailure="false"
167
bootstrap="tests/bootstrap.php"
178
>
189
<testsuites>
1910
<testsuitename="Slim-Psr7 Test Suite">
20-
<directory>./tests/</directory>
11+
<directory>tests</directory>
2112
</testsuite>
2213
</testsuites>
2314

24-
<filter>
25-
<whitelistprocessUncoveredFilesFromWhitelist="true">
26-
<directorysuffix=".php">src/</directory>
27-
</whitelist>
28-
</filter>
29-
30-
<logging>
31-
<log
32-
type="coverage-html"
33-
target="./coverage"
34-
lowUpperBound="20"
35-
highLowerBound="50"
36-
/>
37-
</logging>
15+
<coverageprocessUncoveredFiles="true">
16+
<include>
17+
<directorysuffix=".php">src</directory>
18+
</include>
19+
<report>
20+
<htmloutputDirectory="coverage"lowUpperBound="20"highLowerBound="50"/>
21+
</report>
22+
</coverage>
3823
</phpunit>

‎tests/Assets/PhpFactoryFunctionOverrides.php‎

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

‎tests/Assets/PhpFunctionOverrides.php‎

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

‎tests/bootstrap.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
$classLoader =require__DIR__ .'/../vendor/autoload.php';
2020

21-
//require __DIR__ . '/Assets/PhpFunctionOverrides.php';
22-
//require __DIR__ . '/Assets/PhpFactoryFunctionOverrides.php';
23-
2421
Override::apply($classLoader, [
2522
Headers::class => [
2623
'getallheaders' =>function () {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp