From 77887c23cf4ef242b302e41b051a28ecd64f4175 Mon Sep 17 00:00:00 2001 From: Veaceslav Medvedev Date: Sun, 16 Jun 2019 21:23:40 +0200 Subject: [PATCH] Upgrade php to v7.2 and phpunit to v8.2 (#38) * Upgrade phpunit to v8.2 * Remove parent constructor call * Upgrade php to v7.2 * Update Travis CI settings * Update CHANGELOG --- .travis.yml | 12 +++++++----- CHANGELOG.md | 7 +++++++ composer.json | 4 ++-- src/PhpUnit/ContentTypeConstraint.php | 1 - src/PhpUnit/HeadersConstraint.php | 1 - src/PhpUnit/JsonSchemaConstraint.php | 1 - src/PhpUnit/MethodsAllowedConstraint.php | 1 - src/PhpUnit/UriConstraint.php | 1 - 8 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index d08d050..f3d2749 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index c269c59..cc4619d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/composer.json b/composer.json index d431189..e555369 100755 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/PhpUnit/ContentTypeConstraint.php b/src/PhpUnit/ContentTypeConstraint.php index ee5a5ab..762c82c 100644 --- a/src/PhpUnit/ContentTypeConstraint.php +++ b/src/PhpUnit/ContentTypeConstraint.php @@ -24,7 +24,6 @@ final class ContentTypeConstraint extends Constraint public function __construct(array $allowedTypes) { - parent::__construct(); $this->allowedTypes = array_map([$this, 'stripParams'], $allowedTypes); } diff --git a/src/PhpUnit/HeadersConstraint.php b/src/PhpUnit/HeadersConstraint.php index a5b7fad..30ddcf0 100644 --- a/src/PhpUnit/HeadersConstraint.php +++ b/src/PhpUnit/HeadersConstraint.php @@ -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'); } diff --git a/src/PhpUnit/JsonSchemaConstraint.php b/src/PhpUnit/JsonSchemaConstraint.php index 7b6d8c4..378ec8a 100644 --- a/src/PhpUnit/JsonSchemaConstraint.php +++ b/src/PhpUnit/JsonSchemaConstraint.php @@ -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); diff --git a/src/PhpUnit/MethodsAllowedConstraint.php b/src/PhpUnit/MethodsAllowedConstraint.php index 3f8cd1d..eca7009 100644 --- a/src/PhpUnit/MethodsAllowedConstraint.php +++ b/src/PhpUnit/MethodsAllowedConstraint.php @@ -22,7 +22,6 @@ final class MethodsAllowedConstraint extends Constraint public function __construct(array $allowedMethods) { - parent::__construct(); $this->allowedMethods = array_map('mb_strtoupper', $allowedMethods); } diff --git a/src/PhpUnit/UriConstraint.php b/src/PhpUnit/UriConstraint.php index dea2cd0..d0e01d0 100644 --- a/src/PhpUnit/UriConstraint.php +++ b/src/PhpUnit/UriConstraint.php @@ -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);