Skip to content

Commit

Permalink
Remove psalm in favor of phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 9, 2025
1 parent 70eed16 commit 7bb93e7
Show file tree
Hide file tree
Showing 7 changed files with 1,239 additions and 2,530 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Makefile export-ignore
phpstan.neon.dist export-ignore
phpstan-baseline.neon export-ignore
psalm-baseline.xml export-ignore
psalm.xml export-ignore
phpunit.xml.dist export-ignore
/docs export-ignore
/tests export-ignore
Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ cs: vendor-bin/tools/vendor
cs-fix: vendor-bin/tools/vendor
vendor/bin/php-cs-fixer fix --verbose

.PHONY: psalm
psalm: vendor-bin/tools/vendor
vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4

.PHONY: phpstan
phpstan: vendor-bin/tools/vendor
vendor/bin/phpstan analyse
Expand Down
59 changes: 0 additions & 59 deletions psalm-baseline.xml

This file was deleted.

15 changes: 0 additions & 15 deletions psalm.xml

This file was deleted.

1 change: 0 additions & 1 deletion src/NucleosUserBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ private function addRegisterMappingsPass(ContainerBuilder $container): void
$container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings, ['nucleos_user.model_manager_name'], 'nucleos_user.backend_type_orm'));
}
if (class_exists(DoctrineMongoDBMappingsPass::class)) {
/** @psalm-suppress InternalClass, InternalMethod */
$container->addCompilerPass(DoctrineMongoDBMappingsPass::createXmlMappingDriver($mappings, ['nucleos_user.model_manager_name'], 'nucleos_user.backend_type_mongodb'));
}
}
Expand Down
5 changes: 1 addition & 4 deletions vendor-bin/tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpstan/phpstan-symfony": "^1.3.1",
"phpunit/phpunit": "^10.1.2",
"psalm/plugin-phpunit": "^0.18.4",
"psalm/plugin-symfony": "^5.0.3",
"symfony/phpunit-bridge": "^7.0",
"vimeo/psalm": "^5.9"
"symfony/phpunit-bridge": "^7.0"
},
"config": {
"allow-plugins": {
Expand Down
Loading

0 comments on commit 7bb93e7

Please sign in to comment.