Skip to content

Commit 042ca90

Browse files
committed
chore: remove psalm
1 parent 3c0d640 commit 042ca90

File tree

6 files changed

+2
-25
lines changed

6 files changed

+2
-25
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ phpbench.json export-ignore
1616
phpstan.neon.dist export-ignore
1717
phpstan-baseline.neon export-ignore
1818
phpunit.xml.dist export-ignore
19-
psalm.xml.dist export-ignore
20-
psalm-baseline.xml export-ignore
2119
renovate.json export-ignore

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
composer.lock
44
composer.phar
55
phpstan.neon
6-
psalm.xml
76
vendor
87
.idea

composer.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
"phpstan/phpstan-phpunit": "1.2.2",
2626
"phpstan/phpstan-strict-rules": "1.4.4",
2727
"phpunit/phpunit": "^9.5",
28-
"psalm/plugin-phpunit": "^0.17",
2928
"psr/http-message": "^1",
3029
"react/promise": "^2",
3130
"symfony/polyfill-php81": "^1.23",
3231
"symfony/var-exporter": "^5 || ^6",
33-
"thecodingmachine/safe": "^1.3",
34-
"vimeo/psalm": "^4.19"
32+
"thecodingmachine/safe": "^1.3"
3533
},
3634
"suggest": {
3735
"psr/http-message": "To use standard GraphQL server",
@@ -59,12 +57,11 @@
5957
"sort-packages": true
6058
},
6159
"scripts": {
62-
"baseline": "phpstan --generate-baseline && psalm --set-baseline",
6360
"bench": "phpbench run",
6461
"check": "composer fix && composer stan && composer test",
6562
"docs": "php generate-class-reference.php",
6663
"fix": "php-cs-fixer fix",
67-
"stan": "phpstan && psalm",
64+
"stan": "phpstan",
6865
"test": "phpunit"
6966
}
7067
}

src/Error/Warning.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
* Also, it is possible to override warning handler (which is **trigger_error()** by default).
1212
*
1313
* @phpstan-type WarningHandler callable(string $errorMessage, int $warningId, ?int $messageLevel): void
14-
*
15-
* @see https://github.com/vimeo/psalm/issues/7527
16-
*
17-
* @psalm-type WarningHandler callable(string, int, int|null): void
1814
*/
1915
final class Warning
2016
{

src/Executor/ExecutionResult.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
* }
3535
* @phpstan-type ErrorFormatter callable(Throwable): SerializableError
3636
* @phpstan-type ErrorsHandler callable(array<Error> $errors, ErrorFormatter $formatter): SerializableErrors
37-
*
38-
* @see https://github.com/vimeo/psalm/issues/6928
39-
*
40-
* @psalm-type ErrorsHandler callable(Error[], ErrorFormatter): SerializableErrors
4137
*/
4238
class ExecutionResult implements \JsonSerializable
4339
{

src/Executor/Executor.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@
1414
* Implements the "Evaluating requests" section of the GraphQL specification.
1515
*
1616
* @phpstan-type FieldResolver callable(mixed, array<string, mixed>, mixed, ResolveInfo): mixed
17-
*
18-
* @see https://github.com/vimeo/psalm/issues/6928
19-
*
20-
* @psalm-type FieldResolver callable(mixed, array, mixed, ResolveInfo): mixed
21-
*
2217
* @phpstan-type ImplementationFactory callable(PromiseAdapter, Schema, DocumentNode, mixed, mixed, array<mixed>, ?string, callable): ExecutorImplementation
23-
*
24-
* @see https://github.com/vimeo/psalm/issues/6928, https://github.com/vimeo/psalm/issues/7527
25-
*
26-
* @psalm-type ImplementationFactory callable(PromiseAdapter, Schema, DocumentNode, mixed, mixed, array, ?string, callable): ExecutorImplementation
2718
*/
2819
class Executor
2920
{

0 commit comments

Comments
 (0)