Skip to content

Commit

Permalink
Merge pull request #1119 from rebing/mfn-phpstan
Browse files Browse the repository at this point in the history
Loosen phpstan/larastan constraints
  • Loading branch information
mfn authored Feb 18, 2024
2 parents 030ad0b + e58af34 commit 89f3b7f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"friendsofphp/php-cs-fixer": "3.37.1",
"mfn/php-cs-fixer-config": "^2",
"mockery/mockery": "^1.2",
"phpstan/phpstan": "1.10.40",
"larastan/larastan": "2.6.4",
"phpstan/phpstan": "^1",
"larastan/larastan": "^2",
"orchestra/testbench": "^7.0|^8.0|^9.0|^9.x-dev",
"phpunit/phpunit": "^9|^10",
"thecodingmachine/phpstan-safe-rule": "^1"
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1415,11 +1415,6 @@ parameters:
count: 1
path: tests/Unit/ExecutionMiddlewareTest/ChangeQueryArgTypeMiddleware.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsArray\\(\\) with non\\-empty\\-array will always evaluate to true\\.$#"
count: 1
path: tests/Unit/GraphQLTest.php

-
message: "#^Parameter \\#1 \\$abstract of function app expects string\\|null, object\\|string given\\.$#"
count: 3
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/GraphQLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ public function testFormatError(): void
unset($error['extensions']['file']);
unset($error['extensions']['line']);

self::assertIsArray($error);
self::assertArrayHasKey('message', $error);
self::assertArrayHasKey('locations', $error);
$expectedError = [
Expand Down

0 comments on commit 89f3b7f

Please sign in to comment.