This repository was archived by the owner on Apr 12, 2022. It is now read-only.
File tree 7 files changed +31
-27
lines changed
7 files changed +31
-27
lines changed Original file line number Diff line number Diff line change 63
63
matrix :
64
64
php-version :
65
65
- " 8.0"
66
+ - " 8.1"
66
67
67
68
steps :
68
69
- name : " Checkout"
87
88
restore-keys : ${{ runner.os }}-php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-
88
89
89
90
- name : " Install dependencies"
90
- if : ${{ matrix.php-version != '8.0' }}
91
91
run : " composer update --no-interaction --no-progress"
92
92
93
- - name : " Install dependencies PHP 8.0"
94
- if : ${{ matrix.php-version == '8.0' }}
95
- run : " composer update --no-interaction --no-progress --ignore-platform-reqs"
96
-
97
93
- name : " Run tests"
98
94
timeout-minutes : 3
99
95
run : " vendor/bin/phpunit --no-coverage --no-logging"
Original file line number Diff line number Diff line change 16
16
},
17
17
"require-dev" : {
18
18
"malukenho/mcbumpface" : " ^1.1.5" ,
19
- "mikey179/vfsstream" : " ^1.6.9 " ,
20
- "phpoffice/phpspreadsheet" : " ^1.18 .0" ,
21
- "phpstan/phpstan" : " ^0.12.94 " ,
22
- "phpstan/phpstan-phpunit" : " ^0.12.21 " ,
23
- "phpunit/phpunit" : " ^9.5.8 " ,
24
- "slam/php-cs-fixer-extensions" : " ^3.0.1 " ,
19
+ "mikey179/vfsstream" : " ^1.6.10 " ,
20
+ "phpoffice/phpspreadsheet" : " ^1.20 .0" ,
21
+ "phpstan/phpstan" : " ^1.2.0 " ,
22
+ "phpstan/phpstan-phpunit" : " ^1.0.0 " ,
23
+ "phpunit/phpunit" : " ^9.5.10 " ,
24
+ "slam/php-cs-fixer-extensions" : " ^3.1.0 " ,
25
25
"slam/php-debug-r" : " ^1.7.0" ,
26
- "slam/phpstan-extensions" : " ^5.1.0"
27
- },
28
- "extra" : {
29
- "mc-bumpface" : {
30
- "stripVersionPrefixes" : true
31
- }
26
+ "slam/phpstan-extensions" : " ^6.0.0"
32
27
},
33
28
"autoload" : {
34
29
"psr-4" : {
39
34
"psr-4" : {
40
35
"Slam\\ Excel\\ Tests\\ " : " tests/"
41
36
}
37
+ },
38
+ "extra" : {
39
+ "mc-bumpface" : {
40
+ "stripVersionPrefixes" : true
41
+ }
42
42
}
43
43
}
Original file line number Diff line number Diff line change @@ -189,10 +189,7 @@ public function setCount(int $count): void
189
189
$ this ->count = $ count ;
190
190
}
191
191
192
- /**
193
- * @return null|int
194
- */
195
- public function count ()
192
+ public function count (): int
196
193
{
197
194
if (null === $ this ->count ) {
198
195
throw new Exception \RuntimeException ('Workbook must set count on table ' );
Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ public static function LocalDate2Excel_OLE($date = null)
94
94
$ res = '' ;
95
95
96
96
for ($ i = 0 ; $ i < 4 ; ++$ i ) {
97
- $ hex = $ low_part % 0x100 ;
97
+ $ hex = \floor ( $ low_part) % 0x100 ;
98
98
$ res .= \pack ('c ' , $ hex );
99
99
$ low_part /= 0x100 ;
100
100
}
101
101
for ($ i = 0 ; $ i < 4 ; ++$ i ) {
102
- $ hex = $ high_part % 0x100 ;
102
+ $ hex = \floor ( $ high_part) % 0x100 ;
103
103
$ res .= \pack ('c ' , $ hex );
104
104
$ high_part /= 0x100 ;
105
105
}
Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ public function setCountry($code)
253
253
*
254
254
* @param string $name the optional name of the worksheet
255
255
*
256
- * @return mixed reference to a worksheet object on success, Excel_PEAR_Error
257
- * on failure
256
+ * @return Worksheet reference to a worksheet object on success, Excel_PEAR_Error
257
+ * on failure
258
258
*/
259
259
public function addWorksheet ($ name = '' )
260
260
{
Original file line number Diff line number Diff line change @@ -5,3 +5,13 @@ parameters:
5
5
count : 1
6
6
path : tests/Helper/ColumnCollectionTest.php
7
7
8
+ -
9
+ message : " #^Property Slam\\\\ Excel\\\\ Tests\\\\ Helper\\\\ MainTest\\ :\\ :\\ $vfs is never read, only written\\ .$#"
10
+ count : 1
11
+ path : tests/Helper/MainTest.php
12
+
13
+ -
14
+ message : " #^Property Slam\\\\ Excel\\\\ Tests\\\\ Helper\\\\ TableWorkbookTest\\ :\\ :\\ $vfs is never read, only written\\ .$#"
15
+ count : 1
16
+ path : tests/Helper/TableWorkbookTest.php
17
+
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ includes:
4
4
- phpstan-baseline.neon
5
5
6
6
parameters :
7
- level : max
7
+ level : 8
8
8
checkMissingIterableValueType : false
9
9
paths :
10
10
- lib/
11
11
- tests/
12
- excludes_analyse :
12
+ excludePaths :
13
+ analyseAndScan :
13
14
- %currentWorkingDirectory%/lib/Pear/*
You can’t perform that action at this time.
0 commit comments