Skip to content

Commit 5197f16

Browse files
committed
Phpstan for 7.4 Can Run Same Action as for 8.0+
1 parent 89168b3 commit 5197f16

File tree

7 files changed

+12
-1456
lines changed

7 files changed

+12
-1456
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,12 @@ jobs:
6161
- name: Composer Install
6262
run: composer install --ansi --prefer-dist --no-interaction --no-progress
6363

64-
- name: Run phpstan Php7
64+
- name: Run phpstan Php7.2/Php7.3
6565
if: matrix.php == '7.2' || matrix.php == '7.3'
6666
run: ./vendor/bin/phpstan analyse -c phpstan.neon.php73.dist
6767

68-
- name: Run phpstan Php7.4
69-
if: matrix.php == '7.44'
70-
run: ./vendor/bin/phpstan analyse -c phpstan.neon.php7.dist
71-
72-
- name: Run phpstan Php8
73-
if: matrix.php == '8.0' || matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.3' || matrix.php == '8.4' || matrix.php == '7.4'
68+
- name: Run phpstan Php8/Php7.4
69+
if: matrix.php == '7.4' || matrix.php == '8.0' || matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.3' || matrix.php == '8.4'
7470
run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist
7571

7672
phpunit:

phpstan-baseline.neon

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ parameters:
2525
count: 1
2626
path: src/PhpWord/Element/Image.php
2727

28-
-
29-
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, string given\\.$#"
30-
count: 1
31-
path: src/PhpWord/Element/Image.php
32-
3328
-
3429
message: "#^Property PhpOffice\\\\PhpWord\\\\Element\\\\Image\\:\\:\\$source \\(string\\) does not accept string\\|false\\.$#"
3530
count: 1
@@ -455,11 +450,6 @@ parameters:
455450
count: 6
456451
path: src/PhpWord/Shared/ZipArchive.php
457452

458-
-
459-
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{\\$this\\(PhpOffice\\\\PhpWord\\\\Shared\\\\ZipArchive\\)\\|PclZip\\|ZipArchive, mixed\\} given\\.$#"
460-
count: 1
461-
path: src/PhpWord/Shared/ZipArchive.php
462-
463453
-
464454
message: "#^Property PhpOffice\\\\PhpWord\\\\Shared\\\\ZipArchive\\:\\:\\$zip has unknown class PclZip as its type\\.$#"
465455
count: 1
@@ -890,11 +880,6 @@ parameters:
890880
count: 1
891881
path: src/PhpWord/Writer/ODText/Part/Styles.php
892882

893-
-
894-
message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\AbstractRenderer, string\\} given\\.$#"
895-
count: 1
896-
path: src/PhpWord/Writer/PDF.php
897-
898883
-
899884
message: "#^Property PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\:\\:\\$renderer \\(PhpOffice\\\\PhpWord\\\\Writer\\\\PDF\\\\AbstractRenderer\\) does not accept object\\.$#"
900885
count: 1

0 commit comments

Comments
 (0)