Skip to content

Commit

Permalink
Merge pull request #39 from dansysanalyst/improve_vscode_auto_completion
Browse files Browse the repository at this point in the history
Improve vscode auto completion
  • Loading branch information
luanfreitasdev authored Dec 9, 2024
2 parents 6d5918b + 1ae09d4 commit 1284633
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ parameters:
paths:
- src
level: max
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false

ignoreErrors:
- '#Function [a-zA-Z0-9\\:()]+ has no return type specified.#'
- identifier: missingType.iterableValue
- '~^Parameter #2 \$string of function explode expects string, mixed given\.$~'
-
message: "#^Function ds\\(\\) has invalid return type LaraDumps\\\\LaraDumps\\\\LaraDumps\\.$#"
count: 1
path: src/functions.php
-
message: "#^Call to method phpinfo\\(\\) on an unknown class LaraDumps\\\\LaraDumps\\\\LaraDumps\\.$#"
count: 1
path: src/functions.php
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function appBasePath(): string
}

if (!function_exists('ds')) {
function ds(mixed ...$args)
function ds(mixed ...$args): LaraDumps|LaravelLaraDumps
{
$sendRequest = function ($args, LaraDumps $instance) {
if ($args) {
Expand Down

0 comments on commit 1284633

Please sign in to comment.