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

Commit 77887c2

Browse files
authored
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
1 parent 5d26a76 commit 77887c2

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ language: php
55
matrix:
66
fast_finish: true
77
include:
8-
- php: 7.1
9-
- php: 7.2
8+
- php: "7.2"
109
env:
11-
- EXECUTE_COVERAGE=true
12-
- EXECUTE_CS_CHECK=true
13-
- php: 7.3
10+
- "EXECUTE_COVERAGE=true"
11+
- "EXECUTE_CS_CHECK=true"
12+
- php: "7.3"
13+
- php: "7.4"
14+
allow_failures:
15+
- php: "7.4"
1416

1517
notifications:
1618
email: false

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file
33
using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [0.8.0] 2019-06-16
7+
8+
### Changed
9+
10+
- Updated minimum requirements for `php` to version `7.2`
11+
- Updated `phpunit/phunit` to version `8.2`
12+
613
## [0.7.0] 2019-05-25
714

815
### Changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
],
1414
"minimum-stability": "stable",
1515
"require": {
16-
"php": "^7.1",
16+
"php": "^7.2",
1717
"ext-json": "*",
1818
"ext-mbstring": "*",
1919
"psr/http-message": "^1.0",
2020
"justinrainbow/json-schema": "~5.2",
21-
"phpunit/phpunit": "~7.5"
21+
"phpunit/phpunit": "^8.0"
2222
},
2323
"autoload": {
2424
"psr-4": {

src/PhpUnit/ContentTypeConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ final class ContentTypeConstraint extends Constraint
2424

2525
public function __construct(array $allowedTypes)
2626
{
27-
parent::__construct();
2827
$this->allowedTypes = array_map([$this, 'stripParams'], $allowedTypes);
2928
}
3029

src/PhpUnit/HeadersConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ final class HeadersConstraint extends Constraint
3030

3131
public function __construct(array $expectedHeadersSchemas)
3232
{
33-
parent::__construct();
3433
$this->expectedHeadersSchemas = array_map([$this, 'normalizeJsonSchema'], $expectedHeadersSchemas);
3534
$this->validator = new Validator('undefined');
3635
}

src/PhpUnit/JsonSchemaConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ final class JsonSchemaConstraint extends Constraint
3030

3131
public function __construct(stdClass $schema, string $context = null)
3232
{
33-
parent::__construct();
3433
$this->schema = $schema;
3534
$this->context = $context ?: 'schema';
3635
$this->validator = new Validator($this->context);

src/PhpUnit/MethodsAllowedConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ final class MethodsAllowedConstraint extends Constraint
2222

2323
public function __construct(array $allowedMethods)
2424
{
25-
parent::__construct();
2625
$this->allowedMethods = array_map('mb_strtoupper', $allowedMethods);
2726
}
2827

src/PhpUnit/UriConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function __construct(
4242
array $pathParameters,
4343
array $queryParameters
4444
) {
45-
parent::__construct();
4645
$this->servers = array_map('strtolower', $servers);
4746
$this->path = $path;
4847
$this->pathParameters = array_map([$this, 'normalizeJsonSchema'], $pathParameters);

0 commit comments

Comments
 (0)