Skip to content

Commit fb8ac56

Browse files
committed
drop PHP7.0 and PHP7.1 from package
1 parent 2cbf3d4 commit fb8ac56

File tree

5 files changed

+40
-14
lines changed

5 files changed

+40
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ docs
77
build
88
.idea
99
.php_cs.cache
10+
.phpunit.result.cache

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
3434
"psl"
3535
],
3636
"require": {
37-
"php": ">=7.0",
37+
"php": "^7.2",
3838
"ext-intl": "*",
3939
"psr/log": "^1.1",
4040
"psr/simple-cache": "^1.0.1"
4141
},
4242
"require-dev": {
4343
"composer/composer": "^1.6",
44-
"friendsofphp/php-cs-fixer": "^2.7",
44+
"friendsofphp/php-cs-fixer": "^2.16",
4545
"mikey179/vfsstream": "^1.6",
46-
"phpstan/phpstan": "^0.9.2",
47-
"phpstan/phpstan-phpunit": "^0.9.4",
48-
"phpstan/phpstan-strict-rules": "^0.9.0",
49-
"phpunit/phpunit": "^6.3"
46+
"phpstan/phpstan": "^0.12",
47+
"phpstan/phpstan-phpunit": "^0.12",
48+
"phpstan/phpstan-strict-rules": "^0.12",
49+
"phpunit/phpunit": "^8.5"
5050
},
5151
"suggest": {
5252
"psr/simple-cache-implementation": "To enable using other cache providers",

phpstan.src.neon

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
includes:
2-
- vendor/phpstan/phpstan-strict-rules/rules.neon
2+
- vendor/phpstan/phpstan-strict-rules/rules.neon
3+
parameters:
4+
checkMissingIterableValueType: false
5+
checkGenericClassInNonGenericObjectType: false
6+
ignoreErrors:
7+
- message: '#Call to function is_iterable\(\) with iterable will always evaluate to true.#'
8+
path: src/Cache.php
9+
- message: '#Property Pdp\\TopLevelDomains::\$modifiedDate \(DateTimeImmutable\) does not accept DateTimeInterface.#'
10+
path: src/TopLevelDomains.php
11+
reportUnmatchedIgnoredErrors: true

phpstan.tests.neon

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,24 @@ includes:
22
- vendor/phpstan/phpstan-strict-rules/rules.neon
33
- vendor/phpstan/phpstan-phpunit/extension.neon
44
- vendor/phpstan/phpstan-phpunit/rules.neon
5-
- vendor/phpstan/phpstan-phpunit/strictRules.neon
5+
parameters:
6+
checkMissingIterableValueType: false
7+
ignoreErrors:
8+
- message: '#Parameter \#1 \$exception of method PHPUnit\\Framework\\TestCase::expectException\(\) expects class-string<Throwable>, string given\.#'
9+
path: tests/CacheTest.php
10+
- message: '#Parameter \#1 \$key of method Pdp\\Cache::get\(\) expects string, null given\.#'
11+
path: tests/CacheTest.php
12+
- message: '#Parameter \#3 \$ttl of method Pdp\\Cache::set\(\) expects DateInterval\|int\|null, DateTime\|false given\.#'
13+
path: tests/CacheTest.php
14+
- message: '#Parameter \#1 \$key of method Pdp\\Cache::set\(\) expects string, null given\.#'
15+
path: tests/CacheTest.php
16+
- message: '#Parameter \#1 \$key of method Pdp\\Cache::delete\(\) expects string, null given\.#'
17+
path: tests/CacheTest.php
18+
- message: '#Parameter \#1 \$key of method Pdp\\Cache::has\(\) expects string, null given\.#'
19+
path: tests/CacheTest.php
20+
- message: '#Parameter \#1 \$values of method Pdp\\Cache::setMultiple\(\) expects iterable, null given\.#'
21+
path: tests/CacheTest.php
22+
- message: '#Parameter \#1 \$keys of method Pdp\\Cache::getMultiple\(\) expects iterable, null given\.#'
23+
path: tests/CacheTest.php
24+
- message: '#Parameter \#1 \$keys of method Pdp\\Cache::deleteMultiple\(\) expects iterable, null given\.#'
25+
path: tests/CacheTest.php

phpunit.xml.dist

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,20 @@
1212
stopOnFailure="false">
1313

1414
<testsuites>
15-
<testsuite name="Uri Hostname Parser Test Suite">
15+
<testsuite name="PHP Domain Parser Test Suite">
1616
<directory>tests</directory>
1717
</testsuite>
1818
</testsuites>
1919

2020
<filter>
2121
<whitelist>
2222
<directory suffix=".php">src</directory>
23-
<exclude>
24-
<directory suffix="include.php">src</directory>
25-
</exclude>
26-
<exclude>src/Installer</exclude>
2723
</whitelist>
2824
</filter>
2925

3026
<logging>
3127
<log type="junit" target="build/report.junit.xml"/>
32-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
28+
<log type="coverage-html" target="build/coverage"/>
3329
<log type="coverage-text" target="build/coverage.txt"/>
3430
<log type="coverage-clover" target="build/clover.xml"/>
3531
</logging>

0 commit comments

Comments
 (0)