Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Upgrade php to v7.2 and phpunit to v8.2 (#38)
Browse files Browse the repository at this point in the history
* Upgrade phpunit to v8.2

* Remove parent constructor call

* Upgrade php to v7.2

* Update Travis CI settings

* Update CHANGELOG
  • Loading branch information
slavcodev authored Jun 16, 2019
1 parent 5d26a76 commit 77887c2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ language: php
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.2
- php: "7.2"
env:
- EXECUTE_COVERAGE=true
- EXECUTE_CS_CHECK=true
- php: 7.3
- "EXECUTE_COVERAGE=true"
- "EXECUTE_CS_CHECK=true"
- php: "7.3"
- php: "7.4"
allow_failures:
- php: "7.4"

notifications:
email: false
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file
using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.8.0] 2019-06-16

### Changed

- Updated minimum requirements for `php` to version `7.2`
- Updated `phpunit/phunit` to version `8.2`

## [0.7.0] 2019-05-25

### Changed
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
],
"minimum-stability": "stable",
"require": {
"php": "^7.1",
"php": "^7.2",
"ext-json": "*",
"ext-mbstring": "*",
"psr/http-message": "^1.0",
"justinrainbow/json-schema": "~5.2",
"phpunit/phpunit": "~7.5"
"phpunit/phpunit": "^8.0"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion src/PhpUnit/ContentTypeConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ final class ContentTypeConstraint extends Constraint

public function __construct(array $allowedTypes)
{
parent::__construct();
$this->allowedTypes = array_map([$this, 'stripParams'], $allowedTypes);
}

Expand Down
1 change: 0 additions & 1 deletion src/PhpUnit/HeadersConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ final class HeadersConstraint extends Constraint

public function __construct(array $expectedHeadersSchemas)
{
parent::__construct();
$this->expectedHeadersSchemas = array_map([$this, 'normalizeJsonSchema'], $expectedHeadersSchemas);
$this->validator = new Validator('undefined');
}
Expand Down
1 change: 0 additions & 1 deletion src/PhpUnit/JsonSchemaConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ final class JsonSchemaConstraint extends Constraint

public function __construct(stdClass $schema, string $context = null)
{
parent::__construct();
$this->schema = $schema;
$this->context = $context ?: 'schema';
$this->validator = new Validator($this->context);
Expand Down
1 change: 0 additions & 1 deletion src/PhpUnit/MethodsAllowedConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ final class MethodsAllowedConstraint extends Constraint

public function __construct(array $allowedMethods)
{
parent::__construct();
$this->allowedMethods = array_map('mb_strtoupper', $allowedMethods);
}

Expand Down
1 change: 0 additions & 1 deletion src/PhpUnit/UriConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function __construct(
array $pathParameters,
array $queryParameters
) {
parent::__construct();
$this->servers = array_map('strtolower', $servers);
$this->path = $path;
$this->pathParameters = array_map([$this, 'normalizeJsonSchema'], $pathParameters);
Expand Down

0 comments on commit 77887c2

Please sign in to comment.