From 9982ff2c0a86b4860d32cdd0e2568c60e3a82746 Mon Sep 17 00:00:00 2001 From: christophboecker Date: Sun, 8 Sep 2024 15:57:19 +0200 Subject: [PATCH 1/2] =?UTF-8?q?RexStan-=C3=9Cberpr=C3=BCfung:=20uninstall.?= =?UTF-8?q?php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uninstall.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/uninstall.php b/uninstall.php index 1b18ed1..9d411be 100644 --- a/uninstall.php +++ b/uninstall.php @@ -76,6 +76,12 @@ */ $urlProfileTable = rex::getTable(Profile::TABLE_NAME); + /** + * RexStan: Unable to resolve the template type TFetchType in call to method rex_sql::getArray() + * RexStan: Parameter $fetchType of method rex_sql::getArray() expects 2|3|12, 7 given. + * Das liegt an rex_sql; dort sind nicht alle möglichen PDO::FETCH_... hinterlegt. + * kann man ignorieren + */ $profiles = $sql->setTable($urlProfileTable) ->setWhere('table_name LIKE :tn', [':tn' => '1_xxx_rex_neues_%']) ->select('id') @@ -83,6 +89,11 @@ foreach ($profiles as $profileId) { $profile = Profile::get($profileId); + /** + * RexStan: Strict comparison using !== between null and Url\Profile will always evaluate to true. + * Der Fehler ist im URL-Addon (https://github.com/tbaddade/redaxo_url/pull/301) + * TODO: wenn im URL-Addon behoben kann dieser Kommentar gelöscht werden. + */ if (null !== $profile) { $profile->deleteUrls(); } From 9225dab27b2847829115c9a367bbf3fe31713fb0 Mon Sep 17 00:00:00 2001 From: christophboecker Date: Sun, 8 Sep 2024 14:03:14 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- uninstall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uninstall.php b/uninstall.php index 9d411be..8c321b4 100644 --- a/uninstall.php +++ b/uninstall.php @@ -80,7 +80,7 @@ * RexStan: Unable to resolve the template type TFetchType in call to method rex_sql::getArray() * RexStan: Parameter $fetchType of method rex_sql::getArray() expects 2|3|12, 7 given. * Das liegt an rex_sql; dort sind nicht alle möglichen PDO::FETCH_... hinterlegt. - * kann man ignorieren + * kann man ignorieren. */ $profiles = $sql->setTable($urlProfileTable) ->setWhere('table_name LIKE :tn', [':tn' => '1_xxx_rex_neues_%'])