This repository was archived by the owner on Jun 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +59
-55
lines changed Expand file tree Collapse file tree 5 files changed +59
-55
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
+ - 7.3
4
5
- 7.4snapshot
5
6
6
7
services :
@@ -22,10 +23,9 @@ install:
22
23
23
24
script :
24
25
- ./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
28
28
29
29
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
Original file line number Diff line number Diff line change 30
30
}
31
31
},
32
32
"require" : {
33
- "php" : " >=7.4 " ,
33
+ "php" : " >=7.3 " ,
34
34
"ext-json" : " *" ,
35
35
"php-service-bus/transport-redis" : " v4.0.*" ,
36
36
"amphp/redis" : " v1.0.*"
Original file line number Diff line number Diff line change 1
1
<?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"
6
3
backupGlobals =" false"
4
+ backupStaticAttributes =" false"
5
+ beStrictAboutTestsThatDoNotTestAnything =" false"
7
6
colors =" true"
8
- bootstrap =" vendor/autoload.php"
7
+ verbose =" true"
8
+ convertErrorsToExceptions =" true"
9
+ convertNoticesToExceptions =" true"
10
+ convertWarningsToExceptions =" true"
9
11
failOnRisky =" true"
10
12
failOnWarning =" true"
11
- beStrictAboutTestsThatDoNotTestAnything =" false" >
13
+ stopOnFailure =" false" >
12
14
<php >
13
15
<ini name =" error_reporting" value =" -1" />
14
16
<env name =" REDIS_CONNECTION_DSN" value =" tcp://localhost:6379" />
Original file line number Diff line number Diff line change 27
27
*/
28
28
final class RedisTransportModule implements ServiceBusModule
29
29
{
30
- private string $ connectionDSN ;
30
+ /** @var string */
31
+ private $ connectionDSN ;
31
32
32
- private string $ defaultDestinationChannel ;
33
+ /** @var string */
34
+ private $ defaultDestinationChannel ;
33
35
34
36
/**
35
37
* Connection DSN example: tcp://test-host:6379?timeout=10&password=qwerty.
You can’t perform that action at this time.
0 commit comments