-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phpstan: Streamline vendor file location with local dev-env (#442)
- Loading branch information
Showing
7 changed files
with
200 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#1 \\$fp of function fpassthru expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$fp of function fputcsv expects resource, resource\\|false given\\.$#" | ||
count: 2 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$fp of function rewind expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#" | ||
count: 1 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#" | ||
count: 2 | ||
path: library/Businessprocess/BpConfig.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, array\\<Icinga\\\\Module\\\\Businessprocess\\\\Node\\>\\|null given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/BpNode.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$str of function ucfirst expects string, mixed given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Modification/NodeAction.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, mixed given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Monitoring/Backend/Ido/Query/HostStatusQuery.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$search of function array_key_exists expects array, mixed given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Monitoring/Backend/Ido/Query/ServiceStatusQuery.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, mixed given\\.$#" | ||
count: 2 | ||
path: library/Businessprocess/State/IcingaDbState.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Storage/LegacyConfigParser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$fp of function fgets expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Storage/LegacyConfigParser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Storage/LegacyConfigParser.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Web/Controller.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stack of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Web/Form/FormLoader.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stack of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Web/Form/QuickForm.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#1 \\$stream of function fpassthru expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stream of function fputcsv expects resource, resource\\|false given\\.$#" | ||
count: 2 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stream of function rewind expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" | ||
count: 1 | ||
path: application/controllers/ProcessController.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#" | ||
count: 2 | ||
path: library/Businessprocess/BpConfig.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, array\\<Icinga\\\\Module\\\\Businessprocess\\\\Node\\>\\|null given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/BpNode.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$string of function ucfirst expects string, mixed given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Modification/NodeAction.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Monitoring/Backend/Ido/Query/HostStatusQuery.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Monitoring/Backend/Ido/Query/ServiceStatusQuery.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" | ||
count: 2 | ||
path: library/Businessprocess/State/IcingaDbState.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Storage/LegacyConfigParser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Storage/LegacyConfigParser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stream of function fgets expects resource, resource\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Storage/LegacyConfigParser.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Web/Controller.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$array of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Web/Form/FormLoader.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$array of function array_pop expects array, array\\<int, string\\>\\|false given\\.$#" | ||
count: 1 | ||
path: library/Businessprocess/Web/Form/QuickForm.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
$includes = []; | ||
if (PHP_VERSION_ID >= 80000) { | ||
$includes[] = __DIR__ . '/phpstan-baseline-8x.neon'; | ||
} else { | ||
$includes[] = __DIR__ . '/phpstan-baseline-7x.neon'; | ||
} | ||
|
||
return [ | ||
'includes' => $includes | ||
]; |
Oops, something went wrong.