-
Notifications
You must be signed in to change notification settings - Fork 1
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 (#215)
phpstan is not run with an action anymore, as the action runs it its own docker container and hence has no access to files outside the repository root. A side-effect of this is, that phpstan now **really** runs with the php version set up by the matrix.
- Loading branch information
Showing
9 changed files
with
129 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#2 \\$args of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int, mixed\\> given\\.$#" | ||
count: 1 | ||
path: src/Compat/CompatController.php | ||
|
||
- | ||
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" | ||
count: 1 | ||
path: src/Control/SearchBar/Suggestions.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$str of function rawurlencode expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Control/SearchBar/Terms.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Control/SortControl.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$str of function explode expects string, int\\|string\\|null given\\.$#" | ||
count: 1 | ||
path: src/Control/SortControl.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$str of function rawurlencode expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Filter/Renderer.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$stack of function array_push expects array, mixed given\\.$#" | ||
count: 1 | ||
path: src/FormElement/TermInput.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$content of static method ipl\\\\Html\\\\Text\\:\\:create\\(\\) expects string, string\\|false\\|null given\\.$#" | ||
count: 1 | ||
path: src/Widget/Tabs.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,46 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\<bool\\|float\\|int\\|string\\|null\\>, array\\<int\\|string, mixed\\> given\\.$#" | ||
count: 1 | ||
path: src/Compat/CompatController.php | ||
|
||
- | ||
message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" | ||
count: 1 | ||
path: src/Control/SearchBar/Suggestions.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Control/SearchBar/Terms.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Control/SortControl.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$string of function explode expects string, int\\|string\\|null given\\.$#" | ||
count: 1 | ||
path: src/Control/SortControl.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$column of method ipl\\\\Web\\\\Filter\\\\Parser\\:\\:createCondition\\(\\) expects string, string\\|false given\\.$#" | ||
count: 1 | ||
path: src/Filter/Parser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, mixed given\\.$#" | ||
count: 1 | ||
path: src/Filter/Renderer.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$array of function array_push expects array, mixed given\\.$#" | ||
count: 1 | ||
path: src/FormElement/TermInput.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$content of static method ipl\\\\Html\\\\Text\\:\\:create\\(\\) expects string, string\\|null given\\.$#" | ||
count: 1 | ||
path: src/Widget/Tabs.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-7x.neon'; | ||
} else { | ||
$includes[] = __DIR__ . '/phpstan-baseline-8x.neon'; | ||
} | ||
|
||
return [ | ||
'includes' => $includes | ||
]; |
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
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
Oops, something went wrong.