Skip to content

Commit

Permalink
Use child class as return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Oct 11, 2024
1 parent 4751bc9 commit 92356cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/en/reference/schema-manager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Platforms/MySQL/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion tests/Platforms/SQLServer/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Platforms/SQLite/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 92356cf

Please sign in to comment.