From d21ccc23074c2056aaea1834cc18a67ac3673689 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 13 Mar 2020 10:51:18 -0400 Subject: [PATCH] Migrate Seferov => Psalm --- README.md | 4 ++-- composer.json | 8 ++++---- src/Handler/ClassHandler.php | 6 +++--- src/Handler/ContainerHandler.php | 2 +- src/Handler/ContainerXmlHandler.php | 10 +++++----- src/Issue/ContainerDependency.php | 2 +- src/Issue/PrivateService.php | 2 +- src/Issue/RepositoryStringShortcut.php | 2 +- src/Issue/ServiceNotFound.php | 2 +- src/Plugin.php | 10 +++++----- src/Symfony/ContainerMeta.php | 2 +- src/Symfony/Service.php | 2 +- .../acceptance/acceptance/ContainerDependency.feature | 2 +- tests/acceptance/acceptance/ContainerService.feature | 2 +- tests/acceptance/acceptance/ContainerXml.feature | 2 +- .../acceptance/RepositoryStringShortcut.feature | 2 +- tests/acceptance/acceptance/RequestContent.feature | 2 +- tests/unit/Symfony/ContainerMetaTest.php | 6 +++--- 18 files changed, 34 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 6dc4c69..8503836 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ If you followed installation instructions, psalm-plugin command would added plug - + ``` @@ -34,7 +34,7 @@ If you followed installation instructions, psalm-plugin command would added plug To be able to detect return types of services using ID (generally starts with `@` in Symfony YAML config files. Ex: `logger` service) `containerXml` must be provided. Example: ```xml - + var/cache/dev/App_KernelDevDebugContainer.xml ``` diff --git a/composer.json b/composer.json index a4a7d8f..f72b962 100644 --- a/composer.json +++ b/composer.json @@ -22,18 +22,18 @@ }, "autoload": { "psr-4": { - "Seferov\\SymfonyPsalmPlugin\\": "src" + "Psalm\\SymfonyPsalmPlugin\\": "src" } }, "autoload-dev": { "psr-4": { - "Seferov\\SymfonyPsalmPlugin\\Tests\\Acceptance\\": ["tests/acceptance/_support"], - "Seferov\\SymfonyPsalmPlugin\\Tests\\": ["tests/unit"] + "Psalm\\SymfonyPsalmPlugin\\Tests\\Acceptance\\": ["tests/acceptance/_support"], + "Psalm\\SymfonyPsalmPlugin\\Tests\\": ["tests/unit"] } }, "extra": { "psalm" : { - "pluginClass": "Seferov\\SymfonyPsalmPlugin\\Plugin" + "pluginClass": "Psalm\\SymfonyPsalmPlugin\\Plugin" } }, "scripts": { diff --git a/src/Handler/ClassHandler.php b/src/Handler/ClassHandler.php index a98dd2c..ed0c678 100644 --- a/src/Handler/ClassHandler.php +++ b/src/Handler/ClassHandler.php @@ -1,6 +1,6 @@ get($serviceId); diff --git a/src/Issue/ContainerDependency.php b/src/Issue/ContainerDependency.php index 4253b96..23b380d 100644 --- a/src/Issue/ContainerDependency.php +++ b/src/Issue/ContainerDependency.php @@ -1,6 +1,6 @@ - + """ diff --git a/tests/acceptance/acceptance/ContainerService.feature b/tests/acceptance/acceptance/ContainerService.feature index 9ac5f32..47ed9ef 100644 --- a/tests/acceptance/acceptance/ContainerService.feature +++ b/tests/acceptance/acceptance/ContainerService.feature @@ -12,7 +12,7 @@ Feature: Container service - + """ diff --git a/tests/acceptance/acceptance/ContainerXml.feature b/tests/acceptance/acceptance/ContainerXml.feature index f9ee2a8..5d97386 100644 --- a/tests/acceptance/acceptance/ContainerXml.feature +++ b/tests/acceptance/acceptance/ContainerXml.feature @@ -12,7 +12,7 @@ Feature: Container XML config - + ../../tests/acceptance/container.xml diff --git a/tests/acceptance/acceptance/RepositoryStringShortcut.feature b/tests/acceptance/acceptance/RepositoryStringShortcut.feature index e733dbc..b3418e3 100644 --- a/tests/acceptance/acceptance/RepositoryStringShortcut.feature +++ b/tests/acceptance/acceptance/RepositoryStringShortcut.feature @@ -18,7 +18,7 @@ Feature: RepositoryStringShortcut - + """ diff --git a/tests/acceptance/acceptance/RequestContent.feature b/tests/acceptance/acceptance/RequestContent.feature index afb0bcd..80b7c2e 100644 --- a/tests/acceptance/acceptance/RequestContent.feature +++ b/tests/acceptance/acceptance/RequestContent.feature @@ -12,7 +12,7 @@ Feature: Request getContent - + """ diff --git a/tests/unit/Symfony/ContainerMetaTest.php b/tests/unit/Symfony/ContainerMetaTest.php index a83a9fd..1a2d2da 100644 --- a/tests/unit/Symfony/ContainerMetaTest.php +++ b/tests/unit/Symfony/ContainerMetaTest.php @@ -1,11 +1,11 @@