File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
9
9
env :
10
- COMPOSER_ROOT_VERSION : 3 .99.99
10
+ COMPOSER_ROOT_VERSION : 4 .99.99
11
11
12
12
strategy :
13
13
matrix :
14
- php : [8.1, 8.2]
14
+ php : [8.1, 8.2, 8.3 ]
15
15
16
16
steps :
17
17
- name : Checkout code
Original file line number Diff line number Diff line change 24
24
"ext-mbstring" : " *" ,
25
25
"codeception/codeception" : " ^5.0.8" ,
26
26
"codeception/lib-web" : " ^1.0.1" ,
27
- "phpunit/phpunit" : " ^10.0" ,
27
+ "phpunit/phpunit" : " ^10.0 || ^11.0 " ,
28
28
"symfony/browser-kit" : " ^4.4.24 || ^5.4 || ^6.0 || ^7.0" ,
29
29
"symfony/dom-crawler" : " ^4.4.30 || ^5.4 || ^6.0 || ^7.0"
30
30
},
Original file line number Diff line number Diff line change @@ -30,8 +30,10 @@ public static function clean()
30
30
protected static function load ()
31
31
{
32
32
$ data = file_get_contents (__DIR__ .self ::$ filename );
33
- $ data = $ data ? unserialize ($ data ) : $ data = array ();
34
- if (!is_array ($ data )) $ data = array ();
33
+ $ data = $ data ? unserialize (trim ($ data )) : [];
34
+ if (!is_array ($ data )) {
35
+ $ data = [];
36
+ }
35
37
return $ data ;
36
38
}
37
39
You can’t perform that action at this time.
0 commit comments