diff --git a/src/Platforms/AbstractMySQLPlatform.php b/src/Platforms/AbstractMySQLPlatform.php index 814f4c46094..94b69e5267f 100644 --- a/src/Platforms/AbstractMySQLPlatform.php +++ b/src/Platforms/AbstractMySQLPlatform.php @@ -439,8 +439,11 @@ public function getCreateTablesSQL(array $tables): array Deprecation::trigger( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/5414', - 'Relying on the DBAL not generating DDL for foreign keys on MySQL engines' - . ' other than InnoDB is deprecated. Define foreign key constraints only if they are necessary.', + <<<'DEPRECATION' + Relying on the DBAL not generating DDL for foreign keys on + MySQL engines other than InnoDB is deprecated. + Define foreign key constraints only if they are necessary. + DEPRECATION, ); } } @@ -496,8 +499,11 @@ protected function _getCreateTableSQL($name, array $columns, array $options = [] Deprecation::trigger( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/5414', - 'Relying on the DBAL not generating DDL for foreign keys on MySQL engines' - . ' other than InnoDB is deprecated. Define foreign key constraints only if they are necessary.', + <<<'DEPRECATION' + Relying on the DBAL not generating DDL for foreign keys on + MySQL engines other than InnoDB is deprecated. + Define foreign key constraints only if they are necessary. + DEPRECATION, ); } } diff --git a/src/Statement.php b/src/Statement.php index d229fd98b0b..8ca438d4dcd 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -172,7 +172,8 @@ public function execute($params = null): Result Deprecation::triggerIfCalledFromOutside( 'doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4580', - 'Statement::execute() is deprecated, use Statement::executeQuery() or Statement::executeStatement() instead', + '%s() is deprecated, use Statement::executeQuery() or Statement::executeStatement() instead', + __METHOD__, ); if ($params !== null) { diff --git a/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php b/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php index 76a8a4e0c93..5bdc1ffe80a 100644 --- a/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php +++ b/tests/Functional/Schema/SchemaManagerFunctionalTestCase.php @@ -433,9 +433,9 @@ public function testDispatchEventWhenDatabasePlatformIsExplicitlyPassed(): void public function testDiffListTableColumns(callable $comparatorFactory): void { if ($this->connection->getDatabasePlatform() instanceof OraclePlatform) { - self::markTestSkipped( - 'Does not work with Oracle, since it cannot detect DateTime, Date and Time differences (at the moment).', - ); + self::markTestSkipped(<<<'MSG' + Does not work with Oracle, since it cannot detect DateTime, Date and Time differences (at the moment). + MSG); } $offlineTable = $this->createListTableColumns();