Skip to content

Commit

Permalink
dev: PHPStan updated to v1.11.10
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Aug 16, 2024
1 parent 02ac9d7 commit 1a4ca21
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 193 deletions.
2 changes: 1 addition & 1 deletion packages/testing/src/Utils/Args.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public static function getScoutQuery(mixed $query): array {
];

if ($query instanceof ScoutBuilder) {
$actual = json_decode(json_encode($query, JSON_THROW_ON_ERROR), true, JSON_THROW_ON_ERROR);
$actual = (array) json_decode(json_encode($query, JSON_THROW_ON_ERROR), true, JSON_THROW_ON_ERROR);
} elseif (is_array($query)) {
$actual = $query;
} else {
Expand Down
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ parameters:
count: 1
path: packages/formatter/src/Formatter.php

-
message: "#^Parameter \\#2 \\$factory of method LastDragon_ru\\\\LaraASP\\\\Testing\\\\Package\\\\TestCase\\:\\:override\\(\\) contains unresolvable type\\.$#"
count: 1
path: packages/graphql/src/Stream/Directives/DirectiveTest.php

-
message: "#^Method LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Testing\\\\Package\\\\Models\\\\Image\\:\\:imageable\\(\\) should return Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\MorphTo\\<LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Testing\\\\Package\\\\Models\\\\Role\\|LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Testing\\\\Package\\\\Models\\\\User, LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Testing\\\\Package\\\\Models\\\\Image\\> but returns Illuminate\\\\Database\\\\Eloquent\\\\Relations\\\\MorphTo\\<Illuminate\\\\Database\\\\Eloquent\\\\Model, LastDragon_ru\\\\LaraASP\\\\GraphQL\\\\Testing\\\\Package\\\\Models\\\\Image\\>\\.$#"
count: 1
Expand Down
Loading

0 comments on commit 1a4ca21

Please sign in to comment.