Skip to content

Commit c764e93

Browse files
authored
ci: drop psalm (#165)
1 parent 01c30a0 commit c764e93

12 files changed

+43
-141
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
/phpstan.neon.dist export-ignore
1010
/phpstan-baseline.neon export-ignore
1111
/phpunit.xml.dist export-ignore
12-
/psalm.xml.dist export-ignore
1312
/tests export-ignore

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/composer.lock
33
/phpcs.xml
44
/phpstan.neon
5-
/psalm.xml
65
/phpunit.xml
76
/vendor/
87
.phpunit.result.cache

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
"phpstan/phpstan": "^1.3",
2929
"phpstan/phpstan-phpunit": "^1.0",
3030
"phpstan/phpstan-strict-rules": "^1.1",
31-
"phpunit/phpunit": "^10.1",
32-
"psalm/plugin-phpunit": "^0.19.0",
33-
"vimeo/psalm": "^5.0"
31+
"phpunit/phpunit": "^10.1"
3432
},
3533
"autoload": {
3634
"psr-4": {

psalm-baseline.xml

Lines changed: 0 additions & 73 deletions
This file was deleted.

psalm.xml.dist

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Builder/EnumBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
/**
1313
* @see EnumType
1414
*
15-
* @psalm-import-type EnumValues from EnumType
16-
* @psalm-import-type EnumTypeConfig from EnumType
15+
* @phpstan-import-type EnumValues from EnumType
16+
* @phpstan-import-type EnumTypeConfig from EnumType
1717
*/
1818
class EnumBuilder extends TypeBuilder
1919
{
@@ -60,7 +60,7 @@ public function addValue(
6060
return $this;
6161
}
6262

63-
/** @psalm-return EnumTypeConfig */
63+
/** @phpstan-return EnumTypeConfig */
6464
public function build(): array
6565
{
6666
return [

src/Builder/FieldBuilder.php

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,35 @@
1313
* @see FieldDefinition
1414
* @see Argument
1515
*
16-
* @psalm-import-type FieldResolver from Executor
17-
* @psalm-import-type FieldDefinitionConfig from FieldDefinition
18-
* @psalm-import-type FieldType from FieldDefinition
19-
* @psalm-import-type ArgumentListConfig from Argument
20-
* @psalm-import-type ArgumentType from Argument
16+
* @phpstan-import-type FieldResolver from Executor
17+
* @phpstan-import-type FieldDefinitionConfig from FieldDefinition
18+
* @phpstan-import-type FieldType from FieldDefinition
19+
* @phpstan-import-type ArgumentListConfig from Argument
20+
* @phpstan-import-type ArgumentType from Argument
2121
*/
2222
class FieldBuilder
2323
{
24-
/** @psalm-var FieldType */
24+
/** @phpstan-var FieldType */
2525
private mixed $type;
2626

2727
private string|null $description = null;
2828

2929
private string|null $deprecationReason = null;
3030

31-
/** @psalm-var FieldResolver|null */
31+
/** @phpstan-var FieldResolver|null */
3232
private $resolve;
3333

34-
/** @psalm-var (ArgumentListConfig&array)|null */
34+
/** @phpstan-var (ArgumentListConfig&array)|null */
3535
private array|null $args = null;
3636

37-
/** @psalm-param FieldType $type */
37+
/** @phpstan-param FieldType $type */
3838
final private function __construct(private string $name, $type)
3939
{
4040
$this->type = $type;
4141
}
4242

4343
/**
44-
* @psalm-param FieldType $type
44+
* @phpstan-param FieldType $type
4545
*
4646
* @return static
4747
*/
@@ -59,7 +59,7 @@ public function setDescription(string $description): self
5959
}
6060

6161
/**
62-
* @psalm-param ArgumentType $type
62+
* @phpstan-param ArgumentType $type
6363
*
6464
* @return $this
6565
*/
@@ -81,12 +81,10 @@ public function addArgument(
8181
}
8282

8383
if ($defaultValue !== null) {
84-
/** @psalm-suppress MixedAssignment */
8584
$value['defaultValue'] = $defaultValue;
8685
}
8786

8887
if ($deprecationReason !== null) {
89-
/** @psalm-suppress MixedAssignment */
9088
$value['deprecationReason'] = $deprecationReason;
9189
}
9290

@@ -96,7 +94,7 @@ public function addArgument(
9694
}
9795

9896
/**
99-
* @psalm-param FieldResolver $resolver
97+
* @phpstan-param FieldResolver $resolver
10098
*
10199
* @return $this
102100
*/
@@ -115,7 +113,7 @@ public function setDeprecationReason(string $reason): self
115113
return $this;
116114
}
117115

118-
/** @psalm-return FieldDefinitionConfig */
116+
/** @phpstan-return FieldDefinitionConfig */
119117
public function build(): array
120118
{
121119
return [

src/Builder/InputFieldBuilder.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* @see InputObjectField
1515
* @see Argument
1616
*
17-
* @psalm-import-type FieldResolver from Executor
18-
* @psalm-import-type InputObjectFieldConfig from InputObjectField
19-
* @psalm-import-type ArgumentListConfig from Argument
20-
* @psalm-import-type ArgumentType from Argument
17+
* @phpstan-import-type FieldResolver from Executor
18+
* @phpstan-import-type InputObjectFieldConfig from InputObjectField
19+
* @phpstan-import-type ArgumentListConfig from Argument
20+
* @phpstan-import-type ArgumentType from Argument
2121
*/
2222
class InputFieldBuilder
2323
{
24-
/** @psalm-var ArgumentType */
24+
/** @phpstan-var ArgumentType */
2525
private mixed $type;
2626

2727
private string|null $deprecationReason = null;
@@ -30,14 +30,14 @@ class InputFieldBuilder
3030

3131
private mixed $defaultValue;
3232

33-
/** @psalm-param ArgumentType $type */
33+
/** @phpstan-param ArgumentType $type */
3434
final private function __construct(private string $name, $type)
3535
{
3636
$this->type = $type;
3737
}
3838

3939
/**
40-
* @psalm-param ArgumentType $type
40+
* @phpstan-param ArgumentType $type
4141
*
4242
* @return static
4343
*/
@@ -70,7 +70,7 @@ public function setDeprecationReason(string|null $deprecationReason): self
7070
return $this;
7171
}
7272

73-
/** @psalm-return InputObjectFieldConfig */
73+
/** @phpstan-return InputObjectFieldConfig */
7474
public function build(): array
7575
{
7676
$config = [
@@ -82,7 +82,6 @@ public function build(): array
8282

8383
$property = new ReflectionProperty($this, 'defaultValue');
8484
if ($property->isInitialized($this)) {
85-
/** @psalm-suppress MixedAssignment */
8685
$config['defaultValue'] = $this->defaultValue;
8786
}
8887

src/Builder/InputObjectBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
/**
1010
* @see InputObjectType
1111
*
12-
* @psalm-import-type FieldConfig from InputObjectType
13-
* @psalm-import-type InputObjectConfig from InputObjectType
12+
* @phpstan-import-type FieldConfig from InputObjectType
13+
* @phpstan-import-type InputObjectConfig from InputObjectType
1414
*/
1515
class InputObjectBuilder extends TypeBuilder
1616
{
@@ -39,7 +39,7 @@ public function setFields(callable|array $fields): self
3939
return $this;
4040
}
4141

42-
/** @psalm-return InputObjectConfig */
42+
/** @phpstan-return InputObjectConfig */
4343
public function build(): array
4444
{
4545
return [

src/Builder/InterfaceBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @see InterfaceType
1212
*
13-
* @psalm-import-type InterfaceConfig from InterfaceType
13+
* @phpstan-import-type InterfaceConfig from InterfaceType
1414
*/
1515
class InterfaceBuilder extends TypeBuilder
1616
{
@@ -61,7 +61,7 @@ public function setResolveType(callable $resolveType): self
6161
return $this;
6262
}
6363

64-
/** @psalm-return InterfaceConfig */
64+
/** @phpstan-return InterfaceConfig */
6565
public function build(): array
6666
{
6767
return [

0 commit comments

Comments
 (0)