Skip to content

Github Actions: Add Phpstan #681

Github Actions: Add Phpstan

Github Actions: Add Phpstan #681

Triggered via pull request August 23, 2023 10:46
@yhabteabyhabteab
synchronize #186
phpstan
Status Failure
Total duration 1m 2s
Artifacts

php.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

60 errors
Static analysis for php 7.4 on ubuntu-latest: library/X509/CertificateUtils.php#L161
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, string|null given.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L56
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L64
Cannot access offset mixed on 0|0.0|''|'0'|array<int|string, non-empty-array>|false|null.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L79
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L89
Cannot access an offset on array<int<0, max>, array<int, mixed>>|float|int|string|false|null.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access an offset on array\<int\<0, max\>, array\<int, string\>\>\|float\|int\|string\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access offset string on 0\|0\.0\|''\|'0'\|array\<string, non\-empty\-array\<string\>\>\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Parameter \#1 \$subject of static method ipl\\Stdlib\\Str\:\:trimSplit\(\) expects string\|null, mixed given\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.4 on ubuntu-latest: library/X509/Job.php#L99
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.4 on ubuntu-latest: library/X509/ProvidedHook/HostsImportSource.php#L1
Ignored error pattern #^Method Icinga\\Module\\X509\\ProvidedHook\\HostsImportSource\:\:fetchData\(\) has no return type specified\.$# in path /app/library/X509/ProvidedHook/HostsImportSource.php was not matched in reported errors.
Static analysis for php 8.2 on ubuntu-latest: library/X509/CertificateUtils.php#L161
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, string|null given.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L56
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L64
Cannot access offset mixed on 0|0.0|''|'0'|array<int|string, non-empty-array>|false|null.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L79
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L89
Cannot access an offset on array<int<0, max>, array<int, mixed>>|float|int|string|false|null.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access an offset on array\<int\<0, max\>, array\<int, string\>\>\|float\|int\|string\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access offset string on 0\|0\.0\|''\|'0'\|array\<string, non\-empty\-array\<string\>\>\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Parameter \#1 \$subject of static method ipl\\Stdlib\\Str\:\:trimSplit\(\) expects string\|null, mixed given\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.2 on ubuntu-latest: library/X509/Job.php#L99
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.2 on ubuntu-latest: library/X509/ProvidedHook/HostsImportSource.php#L1
Ignored error pattern #^Method Icinga\\Module\\X509\\ProvidedHook\\HostsImportSource\:\:fetchData\(\) has no return type specified\.$# in path /app/library/X509/ProvidedHook/HostsImportSource.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: library/X509/CertificateUtils.php#L161
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, string|null given.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L56
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L64
Cannot access offset mixed on 0|0.0|''|'0'|array<int|string, non-empty-array>|false|null.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L79
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L89
Cannot access an offset on array<int<0, max>, array<int, mixed>>|float|int|string|false|null.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access an offset on array\<int\<0, max\>, array\<int, string\>\>\|float\|int\|string\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access offset string on 0\|0\.0\|''\|'0'\|array\<string, non\-empty\-array\<string\>\>\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Parameter \#1 \$subject of static method ipl\\Stdlib\\Str\:\:trimSplit\(\) expects string\|null, mixed given\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.3 on ubuntu-latest: library/X509/Job.php#L99
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.3 on ubuntu-latest: library/X509/ProvidedHook/HostsImportSource.php#L1
Ignored error pattern #^Method Icinga\\Module\\X509\\ProvidedHook\\HostsImportSource\:\:fetchData\(\) has no return type specified\.$# in path /app/library/X509/ProvidedHook/HostsImportSource.php was not matched in reported errors.
Static analysis for php 8.0 on ubuntu-latest: library/X509/CertificateUtils.php#L161
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, string|null given.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L56
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L64
Cannot access offset mixed on 0|0.0|''|'0'|array<int|string, non-empty-array>|false|null.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L79
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L89
Cannot access an offset on array<int<0, max>, array<int, mixed>>|float|int|string|false|null.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access an offset on array\<int\<0, max\>, array\<int, string\>\>\|float\|int\|string\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access offset string on 0\|0\.0\|''\|'0'\|array\<string, non\-empty\-array\<string\>\>\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Parameter \#1 \$subject of static method ipl\\Stdlib\\Str\:\:trimSplit\(\) expects string\|null, mixed given\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.0 on ubuntu-latest: library/X509/Job.php#L99
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.0 on ubuntu-latest: library/X509/ProvidedHook/HostsImportSource.php#L1
Ignored error pattern #^Method Icinga\\Module\\X509\\ProvidedHook\\HostsImportSource\:\:fetchData\(\) has no return type specified\.$# in path /app/library/X509/ProvidedHook/HostsImportSource.php was not matched in reported errors.
Static analysis for php 8.1 on ubuntu-latest: library/X509/CertificateUtils.php#L161
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, string|null given.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L56
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L64
Cannot access offset mixed on 0|0.0|''|'0'|array<int|string, non-empty-array>|false|null.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L79
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L89
Cannot access an offset on array<int<0, max>, array<int, mixed>>|float|int|string|false|null.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access an offset on array\<int\<0, max\>, array\<int, string\>\>\|float\|int\|string\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access offset string on 0\|0\.0\|''\|'0'\|array\<string, non\-empty\-array\<string\>\>\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Parameter \#1 \$subject of static method ipl\\Stdlib\\Str\:\:trimSplit\(\) expects string\|null, mixed given\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 8.1 on ubuntu-latest: library/X509/Job.php#L99
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 8.1 on ubuntu-latest: library/X509/ProvidedHook/HostsImportSource.php#L1
Ignored error pattern #^Method Icinga\\Module\\X509\\ProvidedHook\\HostsImportSource\:\:fetchData\(\) has no return type specified\.$# in path /app/library/X509/ProvidedHook/HostsImportSource.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: library/X509/CertificateUtils.php#L161
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, string|null given.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L56
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L64
Cannot access offset mixed on 0|0.0|''|'0'|array<int|string, non-empty-array>|false|null.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L79
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Common/JobUtils.php (in context of class Icinga/Module/X509/Job)#L89
Cannot access an offset on array<int<0, max>, array<int, mixed>>|float|int|string|false|null.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access an offset on array\<int\<0, max\>, array\<int, string\>\>\|float\|int\|string\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Cannot access offset string on 0\|0\.0\|''\|'0'\|array\<string, non\-empty\-array\<string\>\>\|false\|null\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Job.php#L1
Ignored error pattern #^Parameter \#1 \$subject of static method ipl\\Stdlib\\Str\:\:trimSplit\(\) expects string\|null, mixed given\.$# in path /app/library/X509/Job.php was not matched in reported errors.
Static analysis for php 7.2 on ubuntu-latest: library/X509/Job.php#L99
Parameter #1 $subject of static method ipl\Stdlib\Str::trimSplit() expects string, mixed given.
Static analysis for php 7.2 on ubuntu-latest: library/X509/ProvidedHook/HostsImportSource.php#L1
Ignored error pattern #^Method Icinga\\Module\\X509\\ProvidedHook\\HostsImportSource\:\:fetchData\(\) has no return type specified\.$# in path /app/library/X509/ProvidedHook/HostsImportSource.php was not matched in reported errors.