Skip to content
This repository was archived by the owner on Jun 20, 2020. It is now read-only.

Commit 255668e

Browse files
author
desperado
committed
Rollback of the minimum php version to 7.3
1 parent 57bb165 commit 255668e

File tree

5 files changed

+59
-55
lines changed

5 files changed

+59
-55
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: php
22

33
php:
4+
- 7.3
45
- 7.4snapshot
56

67
services:
@@ -22,10 +23,9 @@ install:
2223

2324
script:
2425
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
25-
- ./vendor/bin/psalm --config=psalm.xml
26-
- ./vendor/bin/phpstan analyse src --level 7
27-
- ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run
26+
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then ./vendor/bin/psalm --config=psalm.xml; fi
27+
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
2828

2929
after_script:
30-
- wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
31-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
30+
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
31+
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
},
3232
"require": {
33-
"php": ">=7.4",
33+
"php": ">=7.3",
3434
"ext-json": "*",
3535
"php-service-bus/transport-redis": "v4.0.*",
3636
"amphp/redis": "v1.0.*"

composer.lock

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.0/phpunit.xsd"
2+
<phpunit bootstrap="vendor/autoload.php"
63
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
beStrictAboutTestsThatDoNotTestAnything="false"
76
colors="true"
8-
bootstrap="vendor/autoload.php"
7+
verbose="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
911
failOnRisky="true"
1012
failOnWarning="true"
11-
beStrictAboutTestsThatDoNotTestAnything="false">
13+
stopOnFailure="false">
1214
<php>
1315
<ini name="error_reporting" value="-1"/>
1416
<env name="REDIS_CONNECTION_DSN" value="tcp://localhost:6379"/>

src/RedisTransportModule.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
*/
2828
final class RedisTransportModule implements ServiceBusModule
2929
{
30-
private string $connectionDSN;
30+
/** @var string */
31+
private $connectionDSN;
3132

32-
private string $defaultDestinationChannel;
33+
/** @var string */
34+
private $defaultDestinationChannel;
3335

3436
/**
3537
* Connection DSN example: tcp://test-host:6379?timeout=10&password=qwerty.

0 commit comments

Comments
 (0)