diff --git a/docs/en/reference/schema-manager.rst b/docs/en/reference/schema-manager.rst index 45a6e8071ab..1eda305ac74 100644 --- a/docs/en/reference/schema-manager.rst +++ b/docs/en/reference/schema-manager.rst @@ -246,7 +246,7 @@ To create a comparator that can be used to compare two schemas use the $comparator = $sm->createComparator(); $schemaDiff = $comparator->compareSchemas($fromSchema, $toSchema); -To change the configuration of the comparator, you can pass as +To change the configuration of the comparator, you can pass a ``Doctrine\DBAL\Schema\ComparatorConfig`` object to the method: .. code-block:: php diff --git a/tests/Platforms/MySQL/ComparatorTest.php b/tests/Platforms/MySQL/ComparatorTest.php index f69f8ab844a..da57a11bf10 100644 --- a/tests/Platforms/MySQL/ComparatorTest.php +++ b/tests/Platforms/MySQL/ComparatorTest.php @@ -14,7 +14,7 @@ class ComparatorTest extends AbstractComparatorTestCase { - protected function createComparator(ComparatorConfig $config): \Doctrine\DBAL\Schema\Comparator + protected function createComparator(ComparatorConfig $config): Comparator { return new Comparator( new MySQLPlatform(), diff --git a/tests/Platforms/SQLServer/ComparatorTest.php b/tests/Platforms/SQLServer/ComparatorTest.php index 5392afe2332..682fc204454 100644 --- a/tests/Platforms/SQLServer/ComparatorTest.php +++ b/tests/Platforms/SQLServer/ComparatorTest.php @@ -11,7 +11,7 @@ class ComparatorTest extends AbstractComparatorTestCase { - protected function createComparator(ComparatorConfig $config): \Doctrine\DBAL\Schema\Comparator + protected function createComparator(ComparatorConfig $config): Comparator { return new Comparator(new SQLServerPlatform(), '', $config); } diff --git a/tests/Platforms/SQLite/ComparatorTest.php b/tests/Platforms/SQLite/ComparatorTest.php index 3cd41348f21..59275581dd5 100644 --- a/tests/Platforms/SQLite/ComparatorTest.php +++ b/tests/Platforms/SQLite/ComparatorTest.php @@ -11,7 +11,7 @@ class ComparatorTest extends AbstractComparatorTestCase { - protected function createComparator(ComparatorConfig $config): \Doctrine\DBAL\Schema\Comparator + protected function createComparator(ComparatorConfig $config): Comparator { return new Comparator(new SQLitePlatform(), $config); }