Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update dependencies when dropping PHP 7.2
  • Loading branch information
t0mmy742 committed Aug 4, 2021
commit dce3ed832f0c1cea62cf2ab02a8d58cfbd53fa5e
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ updates:
interval: monthly
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
- dependency-name: phpunit/phpunit
versions:
- "8.5.*"
4 changes: 2 additions & 2 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 Slim
run: vendor/bin/phpstan

- name: Tests
run: vendor/bin/phpunit --coverage-clover clover.xml
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"wiki": "https://github.com/slimphp/Slim/wiki"
},
"require": {
"php": "^7.2 || ^8.0",
"php": "^7.3 || ^8.0",
"ext-json": "*",
"nikic/fast-route": "^1.3",
"psr/container": "^1.0 || ^2.0",
Expand All @@ -57,17 +57,17 @@
"ext-simplexml": "*",
"adriansuter/php-autoload-override": "^1.2",
"guzzlehttp/psr7": "^2.0",
"http-interop/http-factory-guzzle": "^1.1",
"laminas/laminas-diactoros": "^2.4",
"http-interop/http-factory-guzzle": "^1.2",
"laminas/laminas-diactoros": "^2.6",
"nyholm/psr7": "^1.4",
"nyholm/psr7-server": "^1.0",
"phpspec/prophecy": "^1.13",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^0.12.94",
"phpunit/phpunit": "^8.5 || ^9.5",
"phpunit/phpunit": "^9.5",
"slim/http": "^1.2",
"slim/psr7": "^1.4",
"squizlabs/php_codesniffer": "^3.6",
"weirdan/prophecy-shim": "^1.0 || ^2.0"
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
"psr-4": {
Expand All @@ -87,7 +87,7 @@
],
"phpunit": "phpunit",
"phpcs": "phpcs",
"phpstan": "phpstan analyse Slim --memory-limit=-1"
"phpstan": "phpstan --memory-limit=-1"
},
"suggest": {
"ext-simplexml": "Needed to support XML format in BodyParsingMiddleware",
Expand Down
5 changes: 3 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
level: max
paths:
- Slim
34 changes: 11 additions & 23 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
<?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"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
executionOrder="random"
>
<testsuites>
<testsuite name="Slim Test Suite">
<directory>./tests/</directory>
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory>./Slim/</directory>
</whitelist>
</filter>
<logging>
<log
type="coverage-html"
target="./coverage"
lowUpperBound="20"
highLowerBound="50"
/>
</logging>

<coverage processUncoveredFiles="true">
<include>
<directory>Slim</directory>
</include>
<report>
<html outputDirectory="coverage" lowUpperBound="20" highLowerBound="50"/>
</report>
</coverage>
</phpunit>