Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
feat: add support for php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-doehring committed Oct 31, 2020
1 parent 429e2ae commit fc12d0d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php

php:
- 7.4
- 8.0snapshot

before_script:
- composer self-update
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog

## 5.1.0
1. Add support for php `^8.0`

## 5.0.0
1. Change the minimum php version to `^7.4` and implement typed properties
1. Remove unnecessary phpdocs comments
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
],
"minimum-stability": "stable",
"require": {
"php": "^7.4",
"php": "^7.4 || ^8.0",
"ext-json": "*",
"psr/http-message": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"guzzlehttp/psr7": "^1.4",
"php-coveralls/php-coveralls": "^2.2",
"fzaninotto/faker": "^1.9"
"fakerphp/faker": "^1.10"
},
"autoload": {
"psr-4": {
Expand Down
35 changes: 13 additions & 22 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.6/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true">
<testsuite name="JSON API">
<directory suffix="Test.php">tests</directory>
</testsuite>

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

<logging>
<log type="coverage-clover" target="build/logs/clover.xml" />
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" backupGlobals="false" beStrictAboutCoversAnnotation="true" beStrictAboutOutputDuringTests="true" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutTodoAnnotatedTests="true" verbose="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<testsuite name="JSON API">
<directory suffix="Test.php">tests</directory>
</testsuite>
<logging/>
</phpunit>

0 comments on commit fc12d0d

Please sign in to comment.