Skip to content

Commit e59de41

Browse files
authored
Merge pull request #112 from core23/remove-psalm
Remove psalm in favor of phpstan
2 parents 10a3182 + dd9d689 commit e59de41

File tree

11 files changed

+1127
-2384
lines changed

11 files changed

+1127
-2384
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ infection.json export-ignore
33
Makefile export-ignore
44
phpstan.neon.dist export-ignore
55
phpstan-baseline.neon export-ignore
6-
psalm-baseline.xml export-ignore
7-
psalm.xml export-ignore
86
phpunit.xml.dist export-ignore
97
/tests export-ignore
108
/vendor-bin export-ignore

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'import_functions' => false,
4949
],
5050
'phpdoc_to_comment' => [
51-
'ignored_tags' => ['psalm-suppress'],
51+
'ignored_tags' => [],
5252
],
5353
])
5454
->setFinder($finder)

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ cs: vendor-bin/tools/vendor
3232
cs-fix: vendor-bin/tools/vendor
3333
vendor/bin/php-cs-fixer fix --verbose
3434

35-
.PHONY: psalm
36-
psalm: vendor-bin/tools/vendor
37-
vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4
38-
3935
.PHONY: phpstan
4036
phpstan: vendor-bin/tools/vendor
4137
vendor/bin/phpstan analyse

psalm-baseline.xml

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

psalm.xml

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

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ private function getAdminNode(): NodeDefinition
3636
{
3737
$node = (new TreeBuilder('admin'))->getRootNode();
3838

39-
/** @psalm-suppress UndefinedInterfaceMethod */
4039
$node
4140
->addDefaultsIfNotSet()
4241
->children()
@@ -73,7 +72,6 @@ private function getEntityNode(): NodeDefinition
7372
{
7473
$node = (new TreeBuilder('entity'))->getRootNode();
7574

76-
/** @psalm-suppress UndefinedInterfaceMethod */
7775
$node
7876
->addDefaultsIfNotSet()
7977
->children()
@@ -100,7 +98,6 @@ private function getControllerNode(): NodeDefinition
10098
{
10199
$node = (new TreeBuilder('controller'))->getRootNode();
102100

103-
/** @psalm-suppress UndefinedInterfaceMethod */
104101
$node
105102
->addDefaultsIfNotSet()
106103
->children()

src/Exception/EntityNotFound.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class EntityNotFound extends RuntimeException implements SonataAutoConfigu
2222
*/
2323
public function __construct(string $name, array $namespaces)
2424
{
25-
parent::__construct(sprintf(
25+
parent::__construct(\sprintf(
2626
'Entity "%s" not found, looked in "%s" namespaces.',
2727
$name,
2828
implode(', ', array_column($namespaces, 'namespace'))

tests/DependencyInjection/Compiler/AutoConfigureAdminClassesCompilerPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testProcess(
100100
/**
101101
* @return mixed[]
102102
*/
103-
public function provideProcessCases(): iterable
103+
public static function provideProcessCases(): iterable
104104
{
105105
yield [
106106
CategoryAdmin::class,

tests/DependencyInjection/Compiler/AutoConfigureExtensionsCompilerPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testProcess(string $extensionServiceId, array $expectedTags = []
6666
/**
6767
* @return mixed[]
6868
*/
69-
public function provideProcessCases(): iterable
69+
public static function provideProcessCases(): iterable
7070
{
7171
yield [ExtensionWithoutOptions::class];
7272

vendor-bin/tools/composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
"phpstan/phpstan-strict-rules": "^1.5.1",
1515
"phpstan/phpstan-symfony": "^1.3.1",
1616
"phpunit/phpunit": "^10.1.2",
17-
"psalm/plugin-phpunit": "^0.19.0",
18-
"psalm/plugin-symfony": "^5.0.3",
19-
"symfony/phpunit-bridge": "^7.0.0",
20-
"vimeo/psalm": "^5.9"
17+
"symfony/phpunit-bridge": "^7.0.0"
2118
},
2219
"config": {
2320
"allow-plugins": {

0 commit comments

Comments
 (0)