From 479f0ce9ed48a5533669f6147654dd242d5db59f Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 16 Nov 2021 15:17:29 +0100 Subject: [PATCH] fix: SA: Fix "...does not match parent method..." rule. SA stands for Static Analysis. --- phpstan-baseline.neon | 5 ---- .../Doctrine/Type/PointType.php | 26 +++++++------------ 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 3e8d79b3d..56aeb1615 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -55,11 +55,6 @@ parameters: count: 1 path: src/Bundle/ChillMainBundle/Controller/ExportController.php - - - message: "#^Method Chill\\\\MainBundle\\\\Doctrine\\\\Type\\\\PointType\\:\\:getSqlDeclaration\\(\\) does not match parent method name\\: Doctrine\\\\DBAL\\\\Types\\\\Type\\:\\:getSQLDeclaration\\(\\)\\.$#" - count: 1 - path: src/Bundle/ChillMainBundle/Doctrine/Type/PointType.php - - message: "#^Foreach overwrites \\$line with its value variable\\.$#" count: 2 diff --git a/src/Bundle/ChillMainBundle/Doctrine/Type/PointType.php b/src/Bundle/ChillMainBundle/Doctrine/Type/PointType.php index 0a0c160cd..9e42048f7 100644 --- a/src/Bundle/ChillMainBundle/Doctrine/Type/PointType.php +++ b/src/Bundle/ChillMainBundle/Doctrine/Type/PointType.php @@ -1,5 +1,7 @@ toWKT(); } + + return $value->toWKT(); } public function canRequireSQLConversion()