Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
require PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Mar 7, 2021
1 parent c001e05 commit d724985
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 69 deletions.
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ updates:
commit-message:
include: "scope"
prefix: "composer"
ignore:
- dependency-name: infection/infection
versions:
- ">= 0"
- dependency-name: phpunit/phpunit
versions:
- ">= 0"
# ignore:
# - dependency-name: infection/infection
# versions:
# - ">= 0"
# - dependency-name: phpunit/phpunit
# versions:
# - ">= 0"

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
47 changes: 5 additions & 42 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,57 +57,23 @@ jobs:

runs-on: "${{ matrix.operating-system }}"

continue-on-error: ${{ matrix.continue-on-error }}
continue-on-error: false

strategy:
fail-fast: false

matrix:
operating-system:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"

php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"

dependencies:
- "--prefer-lowest"
- ""

continue-on-error:
- false

include:
- operating-system: "ubuntu-latest"
php-version: "8.1"
dependencies: "--prefer-lowest"
continue-on-error: true
- operating-system: "ubuntu-latest"
php-version: "8.1"
dependencies: ""
continue-on-error: true
- operating-system: "windows-latest"
dependencies: "--prefer-lowest"
php-version: "8.1"
continue-on-error: true
- operating-system: "windows-latest"
dependencies: ""
php-version: "8.1"
continue-on-error: true
- operating-system: "macos-latest"
dependencies: "--prefer-lowest"
php-version: "8.1"
continue-on-error: true
- operating-system: "macos-latest"
dependencies: ""
php-version: "8.1"
continue-on-error: true

steps:
- name: "Checkout"
uses: "actions/checkout@v2.3.4"
Expand Down Expand Up @@ -155,7 +121,7 @@ jobs:
- "ubuntu-latest"

php-version:
- "7.1"
- "7.4"

dependencies:
- ""
Expand Down Expand Up @@ -207,7 +173,7 @@ jobs:
- "ubuntu-latest"

php-version:
- "7.1"
- "7.4"

dependencies:
- ""
Expand Down Expand Up @@ -260,7 +226,7 @@ jobs:
- "ubuntu-latest"

php-version:
- "7.1"
- "7.4"

dependencies:
- ""
Expand Down Expand Up @@ -314,9 +280,6 @@ jobs:
- "macos-latest"

php-version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"

dependencies:
Expand Down Expand Up @@ -383,7 +346,7 @@ jobs:
- "ubuntu-latest"

php-version:
- "7.1"
- "7.4"

dependencies:
- ""
Expand Down
4 changes: 2 additions & 2 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the json-class package.
*
* Copyright (c) 2018-2020, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2018-2021, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -13,7 +13,7 @@ declare(strict_types = 1);
$header = <<<'EOF'
This file is part of the json-class package.
Copyright (c) 2018-2020, Thomas Mueller <mimmi20@live.de>
Copyright (c) 2018-2021, Thomas Mueller <mimmi20@live.de>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ This class add a class wrapper around [daverandom/exceptional-json](https://gith

## Code Status

[![Build Status](https://travis-ci.org/mimmi20/json-class.svg?branch=master)](https://travis-ci.org/mimmi20/json-class)
[![codecov](https://codecov.io/gh/mimmi20/json-class/branch/master/graph/badge.svg)](https://codecov.io/gh/mimmi20/json-class)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mimmi20/json-class.svg)](http://isitmaintained.com/project/mimmi20/json-class "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/mimmi20/json-class.svg)](http://isitmaintained.com/project/mimmi20/json-class "Percentage of issues still open")
Expand Down
13 changes: 5 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,21 @@
}
],
"require": {
"php": "^7.1.3 || ^8.0.0",
"php": "^7.4.0 || ^8.0.0",
"ext-json": "*",
"daverandom/exceptional-json": "^1.0.4"
},
"require-dev": {
"infection/infection": "^0.13.6 || ^0.18 || ^0.21.0",
"mimmi20/coding-standard": "^1.0.10",
"infection/infection": "^0.21.4",
"mimmi20/coding-standard": "^2.0.1",
"pepakriz/phpstan-exception-rules": "^0.11.6",
"phpstan/extension-installer": "^1.1.0",
"phpstan/phpstan": "^0.12.80",
"phpstan/phpstan-deprecation-rules": "^0.12.6",
"phpstan/phpstan-phpunit": "~0.12.17",
"phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.2"
"phpstan/phpstan-phpunit": "~0.12.18",
"phpunit/phpunit": "^9.5.2"
},
"config": {
"platform": {
"php": "7.1.3"
},
"preferred-install": "dist",
"sort-packages": true
},
Expand Down
16 changes: 10 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
failOnWarning="true"
beStrictAboutResourceUsageDuringSmallTests="true"
failOnEmptyTestSuite="true"
failOnIncomplete="true"
failOnRisky="true"
failOnSkipped="true"
failOnWarning="true"
verbose="false"
bootstrap="vendor/autoload.php"
enforceTimeLimit="false"
Expand All @@ -28,13 +32,13 @@
<directory>tests/</directory>
</testsuite>

<filter>
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
<include>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</include>
</coverage>

<logging>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
<text outputFile="php://stdout"/>
</logging>
</phpunit>
2 changes: 1 addition & 1 deletion src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the json-class package.
*
* Copyright (c) 2018-2020, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2018-2021, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/JsonInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the json-class package.
*
* Copyright (c) 2018-2020, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2018-2021, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion tests/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the json-class package.
*
* Copyright (c) 2018-2020, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2018-2021, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down

0 comments on commit d724985

Please sign in to comment.