Skip to content

Commit d60490c

Browse files
committed
Dropped support for PHP 7.2
1 parent 989fdca commit d60490c

File tree

7 files changed

+12
-22
lines changed

7 files changed

+12
-22
lines changed

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
return PhpCsFixer\Config::create()
3+
return (new PhpCsFixer\Config())
44
->setRules([
55
'@PSR12' => true,
66
'@Symfony' => true,
77
'@Symfony:risky' => true,
8-
'@PHP71Migration' => true,
8+
'@PHP73Migration' => true,
99
'@PHP71Migration:risky' => true,
1010
'@PHPUnit84Migration:risky' => true,
1111
// Causes too much problems for now, fix later

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@ matrix:
44
fast_finish: true
55
include:
66
- env: TEST_DIR=. PHP_CS_FIXER=true PHPSTAN=true
7-
php: 7.2
7+
php: 7.3
88
- env: TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
9-
php: 7.2
10-
- env: TEST_DIR=.
119
php: 7.3
1210
- env: TEST_DIR=.
1311
php: 7.4
1412
- env: TEST_DIR=tests/integration/apache
15-
php: 7.2
13+
php: 7.3
1614
dist: trusty
1715
sudo: required
1816
services:
1917
- docker
2018
- env: TEST_DIR=tests/integration/guzzle/3
21-
php: 7.2
19+
php: 7.3
2220
- env: TEST_DIR=tests/integration/guzzle/5
23-
php: 7.2
21+
php: 7.3
2422
- env: TEST_DIR=tests/integration/guzzle/6
25-
php: 7.2
23+
php: 7.3
2624
- env: TEST_DIR=tests/integration/soap
27-
php: 7.2
25+
php: 7.3
2826

2927
before_install:
3028
- composer self-update

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.2",
18+
"php": ">=7.3",
1919
"ext-curl": "*",
2020
"beberlei/assert": "^3.2.5",
2121
"symfony/yaml": "~2.1|^3.0|^4.0|^5.0",

phpstan.neon

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@ parameters:
33
paths:
44
- src
55
- tests/VCR
6-
# Can remove reportUnmatchedIgnoredErrors option after php 7.2 is no longer supported
7-
reportUnmatchedIgnoredErrors: false
86
ignoreErrors:
97
# This part of PHP is not very well documented, resulting PHPStan's definitions not being accurate
108
- "#Access to an undefined property object::\\$data\\.#"
119
- "#Access to an undefined property object::\\$datalen\\.#"
12-
-
13-
message: '#Unreachable statement - code above always terminates.#'
14-
path: src/VCR/CodeTransform/AbstractCodeTransform.php
1510
# PHPStan cannot detect that strrpos will succeed (because of Assertion above) in HttpUtil::parseStatus
1611
- '#Parameter .* \$str(ing)? of function substr expects string, string\|false given.#'
1712
# The EventDispatcherInterface::dispatch signature is different (!) between Symfony <4.3 and >=4.3
1813
- '/Parameter #1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string\|null given./'
1914
- '/Parameter #2 \$eventName of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects string\|null, VCR\\Event\\Event given./'
20-
# PHPStan cannot deal with manually defined constants - can be removed once php 7.2 no longer supported
21-
- '#Constant CURLPROXY_HTTPS not found.#'
22-
- '#Call to an undefined method (VCR\\Util\\|)SoapClient::GetCityWeatherByZIP\(\)\.#'
2315
- '#Call to an undefined method org\\bovigo\\vfs\\vfsStreamContent::hasChild\(\)\.#'
2416
includes:
2517
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon

resources/docker/workspace/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-cli-alpine
1+
FROM php:7.3-cli-alpine
22

33
ARG PUID=1000
44
ARG PGID=1000

src/VCR/Storage/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface Storage extends \Iterator
1515
/**
1616
* Stores an array of data.
1717
*
18-
* @param array<string,string|null|array<string,mixed>> $recording array to store in storage
18+
* @param array<string,string|array<string,mixed>|null> $recording array to store in storage
1919
*/
2020
public function storeRecording(array $recording): void;
2121

src/VCR/Util/CurlHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static function getCurlOptionFromResponse(Response $response, int $option
111111
case \CURLINFO_HEADER_SIZE:
112112
$info = mb_strlen(HttpUtil::formatAsStatusWithHeadersString($response), 'ISO-8859-1');
113113
break;
114-
case CURLPROXY_HTTPS:
114+
case \CURLPROXY_HTTPS:
115115
$info = '';
116116
break;
117117
default:

0 commit comments

Comments
 (0)