From 8a71fba23f8d5f856c5ba4f0a6aff4cdbfaa31cc Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sat, 20 Jun 2020 23:50:22 +0300 Subject: [PATCH] Rename .php stubs to .phpstub Refs #60, #43 and #18 --- ...EntityRepository.php => ServiceEntityRepository.phpstub} | 0 src/Plugin.php | 6 +++--- stubs/{ClassMetadata.php => ClassMetadata.phpstub} | 0 stubs/{ClassMetadataInfo.php => ClassMetadataInfo.phpstub} | 0 stubs/{Collections.php => Collections.phpstub} | 0 stubs/{Connection.php => Connection.phpstub} | 0 .../{ExpressionBuilder.php => ExpressionBuilder.phpstub} | 0 stubs/DBAL/{QueryBuilder.php => QueryBuilder.phpstub} | 0 stubs/{EntityManager.php => EntityManager.phpstub} | 0 ...yManagerInterface.php => EntityManagerInterface.phpstub} | 0 stubs/{EntityRepository.php => EntityRepository.phpstub} | 0 stubs/{Expr.php => Expr.phpstub} | 0 stubs/{ObjectManager.php => ObjectManager.phpstub} | 0 stubs/{ObjectRepository.php => ObjectRepository.phpstub} | 0 stubs/{Paginator.php => Paginator.phpstub} | 0 stubs/{ParameterType.php => ParameterType.phpstub} | 0 stubs/{QueryBuilder.php => QueryBuilder.phpstub} | 0 17 files changed, 3 insertions(+), 3 deletions(-) rename bundle-stubs/{ServiceEntityRepository.php => ServiceEntityRepository.phpstub} (100%) rename stubs/{ClassMetadata.php => ClassMetadata.phpstub} (100%) rename stubs/{ClassMetadataInfo.php => ClassMetadataInfo.phpstub} (100%) rename stubs/{Collections.php => Collections.phpstub} (100%) rename stubs/{Connection.php => Connection.phpstub} (100%) rename stubs/DBAL/{ExpressionBuilder.php => ExpressionBuilder.phpstub} (100%) rename stubs/DBAL/{QueryBuilder.php => QueryBuilder.phpstub} (100%) rename stubs/{EntityManager.php => EntityManager.phpstub} (100%) rename stubs/{EntityManagerInterface.php => EntityManagerInterface.phpstub} (100%) rename stubs/{EntityRepository.php => EntityRepository.phpstub} (100%) rename stubs/{Expr.php => Expr.phpstub} (100%) rename stubs/{ObjectManager.php => ObjectManager.phpstub} (100%) rename stubs/{ObjectRepository.php => ObjectRepository.phpstub} (100%) rename stubs/{Paginator.php => Paginator.phpstub} (100%) rename stubs/{ParameterType.php => ParameterType.phpstub} (100%) rename stubs/{QueryBuilder.php => QueryBuilder.phpstub} (100%) diff --git a/bundle-stubs/ServiceEntityRepository.php b/bundle-stubs/ServiceEntityRepository.phpstub similarity index 100% rename from bundle-stubs/ServiceEntityRepository.php rename to bundle-stubs/ServiceEntityRepository.phpstub diff --git a/src/Plugin.php b/src/Plugin.php index fe59793..768d950 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -28,8 +28,8 @@ public function __invoke(RegistrationInterface $psalm, ?SimpleXMLElement $config private function getStubFiles(): array { return array_merge( - glob(__DIR__ . '/../stubs/*.php') ?: [], - glob(__DIR__ . '/../stubs/DBAL/*.php') ?: [] + glob(__DIR__ . '/../stubs/*.phpstub') ?: [], + glob(__DIR__ . '/../stubs/DBAL/*.phpstub') ?: [] ); } @@ -40,7 +40,7 @@ private function getBundleStubs(): array return []; } - return glob(__DIR__ . '/../' . 'bundle-stubs/*.php'); + return glob(__DIR__ . '/../' . 'bundle-stubs/*.phpstub'); } private function hasPackage(string $packageName): bool diff --git a/stubs/ClassMetadata.php b/stubs/ClassMetadata.phpstub similarity index 100% rename from stubs/ClassMetadata.php rename to stubs/ClassMetadata.phpstub diff --git a/stubs/ClassMetadataInfo.php b/stubs/ClassMetadataInfo.phpstub similarity index 100% rename from stubs/ClassMetadataInfo.php rename to stubs/ClassMetadataInfo.phpstub diff --git a/stubs/Collections.php b/stubs/Collections.phpstub similarity index 100% rename from stubs/Collections.php rename to stubs/Collections.phpstub diff --git a/stubs/Connection.php b/stubs/Connection.phpstub similarity index 100% rename from stubs/Connection.php rename to stubs/Connection.phpstub diff --git a/stubs/DBAL/ExpressionBuilder.php b/stubs/DBAL/ExpressionBuilder.phpstub similarity index 100% rename from stubs/DBAL/ExpressionBuilder.php rename to stubs/DBAL/ExpressionBuilder.phpstub diff --git a/stubs/DBAL/QueryBuilder.php b/stubs/DBAL/QueryBuilder.phpstub similarity index 100% rename from stubs/DBAL/QueryBuilder.php rename to stubs/DBAL/QueryBuilder.phpstub diff --git a/stubs/EntityManager.php b/stubs/EntityManager.phpstub similarity index 100% rename from stubs/EntityManager.php rename to stubs/EntityManager.phpstub diff --git a/stubs/EntityManagerInterface.php b/stubs/EntityManagerInterface.phpstub similarity index 100% rename from stubs/EntityManagerInterface.php rename to stubs/EntityManagerInterface.phpstub diff --git a/stubs/EntityRepository.php b/stubs/EntityRepository.phpstub similarity index 100% rename from stubs/EntityRepository.php rename to stubs/EntityRepository.phpstub diff --git a/stubs/Expr.php b/stubs/Expr.phpstub similarity index 100% rename from stubs/Expr.php rename to stubs/Expr.phpstub diff --git a/stubs/ObjectManager.php b/stubs/ObjectManager.phpstub similarity index 100% rename from stubs/ObjectManager.php rename to stubs/ObjectManager.phpstub diff --git a/stubs/ObjectRepository.php b/stubs/ObjectRepository.phpstub similarity index 100% rename from stubs/ObjectRepository.php rename to stubs/ObjectRepository.phpstub diff --git a/stubs/Paginator.php b/stubs/Paginator.phpstub similarity index 100% rename from stubs/Paginator.php rename to stubs/Paginator.phpstub diff --git a/stubs/ParameterType.php b/stubs/ParameterType.phpstub similarity index 100% rename from stubs/ParameterType.php rename to stubs/ParameterType.phpstub diff --git a/stubs/QueryBuilder.php b/stubs/QueryBuilder.phpstub similarity index 100% rename from stubs/QueryBuilder.php rename to stubs/QueryBuilder.phpstub