From 0042140882f1efc87558ccf4f1a173b909bd7dfc Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Fri, 22 Sep 2023 12:30:50 +0200 Subject: [PATCH] [TASK] Remove unused UnexpectedSignalReturnValueTypeException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The exception became unused with removal of signal/slot in v10. Resolves: #102010 Releases: main Change-Id: I81c944adcbe287db0e7f196de220328bba8fee0f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81175 Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> --- ...expectedSignalReturnValueTypeException.php | 25 ------------------- .../Database/Schema/SchemaMigrator.php | 6 ----- 2 files changed, 31 deletions(-) delete mode 100644 typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php diff --git a/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php b/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php deleted file mode 100644 index 6dc8485ddb18..000000000000 --- a/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -declare(strict_types=1); - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -namespace TYPO3\CMS\Core\Database\Schema\Exception; - -/** - * An exception thrown if the return value type of a signal is not the expected one. - */ -class UnexpectedSignalReturnValueTypeException extends \Exception -{ -} diff --git a/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php b/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php index fcaa760d8946..bc8de19c8b67 100644 --- a/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php +++ b/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php @@ -27,7 +27,6 @@ use TYPO3\CMS\Core\Core\Bootstrap; use TYPO3\CMS\Core\Database\Connection; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\Schema\Exception\StatementException; -use TYPO3\CMS\Core\Database\Schema\Exception\UnexpectedSignalReturnValueTypeException; use TYPO3\CMS\Core\Database\Schema\Parser\Parser; /** @@ -56,7 +55,6 @@ class SchemaMigrator * @throws SchemaException * @throws \InvalidArgumentException * @throws \RuntimeException - * @throws UnexpectedSignalReturnValueTypeException * @throws StatementException */ public function getUpdateSuggestions(array $statements, bool $remove = false): array @@ -84,7 +82,6 @@ class SchemaMigrator * @throws SchemaException * @throws \InvalidArgumentException * @throws \RuntimeException - * @throws UnexpectedSignalReturnValueTypeException * @throws StatementException */ public function getSchemaDiffs(array $statements): array @@ -113,7 +110,6 @@ class SchemaMigrator * @throws DBALException * @throws SchemaException * @throws \InvalidArgumentException - * @throws UnexpectedSignalReturnValueTypeException * @throws StatementException * @throws \RuntimeException */ @@ -159,7 +155,6 @@ class SchemaMigrator * @throws SchemaException * @throws \InvalidArgumentException * @throws \RuntimeException - * @throws UnexpectedSignalReturnValueTypeException * @throws StatementException */ public function install(array $statements, bool $createOnly = false): array @@ -231,7 +226,6 @@ class SchemaMigrator * @throws \InvalidArgumentException * @throws \RuntimeException * @throws StatementException - * @throws UnexpectedSignalReturnValueTypeException */ public function parseCreateTableStatements(array $statements): array { -- GitLab