File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,23 @@ matrix:
19
19
- php : 7.1
20
20
env :
21
21
- CODE_COVERAGE="1"
22
+ - BENCHMARK="0"
22
23
- php : 7.2
23
24
env :
24
25
- CODE_COVERAGE="1"
26
+ - BENCHMARK="0"
25
27
- php : 7.3
26
28
env :
27
29
- CODE_COVERAGE="1"
30
+ - BENCHMARK="1"
28
31
- php : 7.4
29
32
env :
30
33
- CODE_COVERAGE="1"
34
+ - BENCHMARK="1"
31
35
- php : nightly
36
+ env :
37
+ - CODE_COVERAGE="0"
38
+ - BENCHMARK="0"
32
39
allow_failures :
33
40
- php : nightly
34
41
@@ -39,6 +46,9 @@ install:
39
46
- if [ "${CODE_COVERAGE}" == "1" ]; then
40
47
wget -q -N -t 3 --retry-connrefused 'https://scrutinizer-ci.com/ocular.phar' || return 0;
41
48
fi
49
+ - if [ "${BENCHMARK}" == "0" ]; then
50
+ composer remove --dev phpbench/phpbench --no-update;
51
+ fi
42
52
- composer install -n
43
53
44
54
script :
@@ -55,7 +65,9 @@ script:
55
65
- php vendor/bin/psalm
56
66
57
67
# run benchmarks to make sure they are working fine
58
- - php vendor/bin/phpbench run --no-interaction --revs=1 --retry-threshold=100
68
+ - if [ "${BENCHMARK}" == "1" ]; then
69
+ php vendor/bin/phpbench run --no-interaction --revs=1 --retry-threshold=100;
70
+ fi
59
71
60
72
after_script :
61
73
- if [ "${CODE_COVERAGE}" == "1" ]; then
Original file line number Diff line number Diff line change 22
22
},
23
23
"require-dev" : {
24
24
"phpbench/phpbench" : " ^0.16.10" ,
25
- "phpstan/phpstan" : " ^0.12.19 " ,
25
+ "phpstan/phpstan" : " ^0.12.42 " ,
26
26
"phpunit/phpunit" : " ^7.5.20" ,
27
- "vimeo/psalm" : " ^3.11.2 "
27
+ "vimeo/psalm" : " ^3.15.0 "
28
28
},
29
29
"autoload" : {
30
30
"psr-4" : {
Original file line number Diff line number Diff line change @@ -476,9 +476,8 @@ private function doSetBitInt($ordinal): void
476
476
{
477
477
/** @var int $thisBitset */
478
478
$ thisBitset = $ this ->bitset ;
479
- $ thisBitset = $ thisBitset | (1 << $ ordinal );
480
479
481
- $ this ->bitset = $ thisBitset ;
480
+ $ this ->bitset = $ thisBitset | ( 1 << $ ordinal ) ;
482
481
}
483
482
484
483
/**
@@ -514,7 +513,10 @@ private function doUnsetBitBin($ordinal): void
514
513
*/
515
514
private function doUnsetBitInt ($ ordinal ): void
516
515
{
517
- $ this ->bitset = $ this ->bitset & ~(1 << $ ordinal );
516
+ /** @var int $thisBitset */
517
+ $ thisBitset = $ this ->bitset ;
518
+
519
+ $ this ->bitset = $ thisBitset & ~(1 << $ ordinal );
518
520
}
519
521
520
522
/* write access (immutable) */
You can’t perform that action at this time.
0 commit comments