Skip to content

Commit

Permalink
Drop PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mmy742 committed Sep 21, 2021
1 parent 4325f19 commit eee3ec7
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 217 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,3 @@ updates:
interval: monthly
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
- dependency-name: symfony/polyfill-php80
versions:
- 1.22.0
- dependency-name: phpunit/phpunit
versions:
- 8.5.14
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
php: [7.3, 7.4, 8.0]
experimental: [false]
include:
- php: 8.0
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Static analysis
if: matrix.analysis
run: vendor/bin/phpstan analyse src
run: vendor/bin/phpstan

- name: Tests
run: vendor/bin/phpunit --coverage-clover clover.xml
Expand All @@ -47,5 +47,5 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer require php-coveralls/php-coveralls -n
composer require php-coveralls/php-coveralls -n -W
vendor/bin/php-coveralls --coverage_clover=clover.xml -v
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ composer require slim/psr7
```

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

## Tests

Expand Down
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,23 @@
}
],
"require": {
"php": "^7.2 || ^8.0",
"php": "^7.3 || ^8.0",
"fig/http-message-util": "^1.1.5",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0",
"ralouphie/getallheaders": "^3",
"ralouphie/getallheaders": "^3.0",
"symfony/polyfill-php80": "^1.23"
},
"require-dev": {
"ext-json": "*",
"adriansuter/php-autoload-override": "^1.2",
"http-interop/http-factory-tests": "^0.9.0",
"php-http/psr7-integration-tests": "dev-master",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^8.5 || ^9.5",
"squizlabs/php_codesniffer": "^3.6",
"weirdan/prophecy-shim": "^1.0 || ^2.0.2"
"phpspec/prophecy": "^1.14",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^0.12.99",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6"
},
"provide": {
"psr/http-message-implementation": "1.0",
Expand All @@ -67,7 +68,7 @@
],
"phpunit": "phpunit",
"phpcs": "phpcs",
"phpstan": "phpstan analyse src --memory-limit=-1"
"phpstan": "phpstan --memory-limit=-1"
},
"config": {
"sort-packages": true
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
parameters:
level: max
checkMissingIterableValueType: false
paths:
- src
35 changes: 10 additions & 25 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
backupGlobals="true"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutChangesToGlobalState="false"
beStrictAboutOutputDuringTests="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="Slim-Psr7 Test Suite">
<directory>./tests/</directory>
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>

<logging>
<log
type="coverage-html"
target="./coverage"
lowUpperBound="20"
highLowerBound="50"
/>
</logging>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<html outputDirectory="coverage" lowUpperBound="20" highLowerBound="50"/>
</report>
</coverage>
</phpunit>
45 changes: 0 additions & 45 deletions tests/Assets/PhpFactoryFunctionOverrides.php

This file was deleted.

126 changes: 0 additions & 126 deletions tests/Assets/PhpFunctionOverrides.php

This file was deleted.

3 changes: 0 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

$classLoader = require __DIR__ . '/../vendor/autoload.php';

//require __DIR__ . '/Assets/PhpFunctionOverrides.php';
//require __DIR__ . '/Assets/PhpFactoryFunctionOverrides.php';

Override::apply($classLoader, [
Headers::class => [
'getallheaders' => function () {
Expand Down

0 comments on commit eee3ec7

Please sign in to comment.