Skip to content

Commit d2f9fc0

Browse files
committed
chore: remove psalm
1 parent 8e5f753 commit d2f9fc0

File tree

8 files changed

+2
-52
lines changed

8 files changed

+2
-52
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

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,3 @@ jobs:
3434

3535
- name: Run a static analysis with phpstan/phpstan
3636
run: vendor/bin/phpstan --error-format=checkstyle | cs2pr
37-
38-
static-analysis-psalm:
39-
name: Static Analysis with Psalm
40-
runs-on: ubuntu-20.04
41-
42-
strategy:
43-
matrix:
44-
php-version:
45-
- 8.1
46-
47-
steps:
48-
- name: Checkout code
49-
uses: actions/checkout@v3
50-
51-
- name: Install PHP
52-
uses: shivammathur/setup-php@v2
53-
with:
54-
coverage: none
55-
php-version: ${{ matrix.php-version }}
56-
tools: cs2pr
57-
58-
- name: Install dependencies with Composer
59-
uses: ramsey/composer-install@v2
60-
61-
- name: Run a static analysis with vimeo/psalm
62-
run: vendor/bin/psalm --output-format=github --shepherd

.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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![CI](https://github.com/webonyx/graphql-php/workflows/CI/badge.svg)](https://github.com/webonyx/graphql-php/actions?query=workflow:CI+branch:master)
44
[![Coverage Status](https://codecov.io/gh/webonyx/graphql-php/branch/master/graph/badge.svg)](https://codecov.io/gh/webonyx/graphql-php/branch/master)
55
[![Latest Stable Version](https://poser.pugx.org/webonyx/graphql-php/version)](https://packagist.org/packages/webonyx/graphql-php)
6-
[![Shepherd Type](https://shepherd.dev/github/webonyx/graphql-php/coverage.svg)](ttps://shepherd.dev/github/webonyx/graphql-php)
76

87
This is a PHP implementation of the GraphQL [specification](https://github.com/graphql/graphql-spec)
98
based on the [reference implementation in JavaScript](https://github.com/graphql/graphql-js).

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)