File tree 9 files changed +45
-37
lines changed
9 files changed +45
-37
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
cache :
@@ -19,10 +20,9 @@ install:
19
20
20
21
script :
21
22
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
22
- - ./vendor/bin/psalm --config=psalm.xml
23
- - ./vendor/bin/phpstan analyse src --level 7
24
- - ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run
23
+ - if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then ./vendor/bin/psalm --config=psalm.xml; fi
24
+ - if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
25
25
26
26
after_script :
27
- - wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
28
- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
27
+ - if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
28
+ - 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 27
27
}
28
28
},
29
29
"require" : {
30
- "php" : " >=7.4 " ,
30
+ "php" : " >=7.3 " ,
31
31
"amphp/amp" : " v2.4.*" ,
32
32
"amphp/file" : " v1.0.*"
33
33
},
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
</php >
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ final class AmpLock implements Lock
25
25
*
26
26
* @var string
27
27
*/
28
- private string $ id ;
28
+ private $ id ;
29
29
30
30
/**
31
31
* The function to be called on release or null if the lock has been released.
32
32
*
33
33
* @var \Closure|null
34
34
*/
35
- private ? \ Closure $ releaser = null ;
35
+ private $ releaser = null ;
36
36
37
37
public function __construct (string $ id , ?\Closure $ releaser )
38
38
{
Original file line number Diff line number Diff line change @@ -34,18 +34,24 @@ final class FilesystemMutex implements Mutex
34
34
35
35
/**
36
36
* Mutex identifier.
37
+ *
38
+ * @var string
37
39
*/
38
- private string $ id ;
40
+ private $ id ;
39
41
40
42
/**
41
43
* Barrier file path.
44
+ *
45
+ * @var string
42
46
*/
43
- private string $ filePath ;
47
+ private $ filePath ;
44
48
45
49
/**
46
50
* Release handler.
51
+ *
52
+ * @var \Closure
47
53
*/
48
- private \ Closure $ release ;
54
+ private $ release ;
49
55
50
56
public function __construct (string $ id , string $ filePath )
51
57
{
Original file line number Diff line number Diff line change 17
17
*/
18
18
final class FilesystemMutexFactory implements MutexFactory
19
19
{
20
- private string $ storageDirectory ;
20
+ /** @var string */
21
+ private $ storageDirectory ;
21
22
22
23
public function __construct (string $ storageDirectory )
23
24
{
Original file line number Diff line number Diff line change @@ -28,10 +28,8 @@ final class InMemoryMutex implements Mutex
28
28
{
29
29
private const LATENCY_TIMEOUT = 10 ;
30
30
31
- /**
32
- * @var string
33
- */
34
- private string $ id ;
31
+ /** @var string */
32
+ private $ id ;
35
33
36
34
public function __construct (string $ id )
37
35
{
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ final class InMemoryMutexStorage
20
20
/**
21
21
* @psalm-var array<string, bool>
22
22
*/
23
- private array $ localStorage = [];
23
+ private $ localStorage = [];
24
24
25
- private static ?self $ instance = null ;
25
+ /** @var self|null */
26
+ private static $ instance = null ;
26
27
27
28
/**
28
29
* @return self
You can’t perform that action at this time.
0 commit comments