File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 4
4
- 7.1
5
5
- 7.2
6
6
- 7.3
7
- - 7.4snapshot
8
- # php8 is not supported yet
9
- # - nightly
7
+ - 7.4
8
+ - 8.0
10
9
11
10
env :
12
11
matrix :
17
16
18
17
matrix :
19
18
fast_finish : true
20
- allow_failures :
21
- - php : 7.4snapshot
22
19
23
20
install :
24
21
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
Original file line number Diff line number Diff line change 11
11
],
12
12
"minimum-stability" : " stable" ,
13
13
"require" : {
14
- "php" : " ^7.1"
14
+ "php" : " ^7.1 | ^8.0 "
15
15
},
16
16
"autoload" : {
17
17
"psr-4" : {
28
28
},
29
29
"require-dev" : {
30
30
"friendsofphp/php-cs-fixer" : " ^2.15" ,
31
- "phpunit/phpunit" : " ^7.5 | ^8.2"
31
+ "phpunit/phpunit" : " ^7.5.20 | ^8.2 | ^9.0 "
32
32
}
33
33
}
Original file line number Diff line number Diff line change @@ -203,12 +203,14 @@ public function parse(string $data): Barcode
203
203
$ position += $ length + strlen ($ this ->config ->getGroupSeparator ());
204
204
}
205
205
206
- $ this ->assertValueIsValid ($ value );
206
+ if ($ length > 0 ) {
207
+ $ this ->assertValueIsValid ($ value );
207
208
208
- if ($ ai ) {
209
- $ foundAIs [$ ai ] = $ value ;
210
- } else {
211
- $ buffer [] = $ value ;
209
+ if ($ ai ) {
210
+ $ foundAIs [$ ai ] = $ value ;
211
+ } else {
212
+ $ buffer [] = $ value ;
213
+ }
212
214
}
213
215
}
214
216
You can’t perform that action at this time.
0 commit comments