Skip to content

Commit 9aae655

Browse files
committed
ignore errors for false positive for php8
1 parent 3e5183e commit 9aae655

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

app/Objects/WorkflowGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function ($str) {
7373
public static function split($somethingToSplit, string $splitChars = ",")
7474
{
7575
if (\is_string($somethingToSplit)) {
76-
// @phpstan-ignore-next-line
7776
return array_map('trim', explode($splitChars, $somethingToSplit));
7877
}
7978
return $somethingToSplit;

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"mockery/mockery": "^1.4.4",
3737
"nunomaduro/collision": "^5.10",
3838
"nunomaduro/larastan": "^0.7.2",
39+
"phpstan/phpstan": "^0.12.99",
3940
"phpunit/phpunit": "^9.5.8",
4041
"psalm/plugin-laravel": "^1.4",
4142
"squizlabs/php_codesniffer": "^3.6",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ includes:
22
- ./vendor/nunomaduro/larastan/extension.neon
33
parameters:
44
reportUnmatchedIgnoredErrors: false
5+
ignoreErrors:
6+
- '#Parameter .1 \$separator of function explode expects non-empty-string, string given.#'
7+
58
level: 6
69
paths:
710
- app

0 commit comments

Comments
 (0)