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 a6708ea commit 23f3119
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/Platforms/MySQL/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
use Doctrine\DBAL\Platforms\MySQL\Comparator;
use Doctrine\DBAL\Platforms\MySQL\DefaultTableOptions;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Schema\Comparator as SchemaComparator;
use Doctrine\DBAL\Schema\ComparatorConfig;
use Doctrine\DBAL\Tests\Schema\AbstractComparatorTestCase;

class ComparatorTest extends AbstractComparatorTestCase
{
protected function createComparator(ComparatorConfig $config): SchemaComparator
protected function createComparator(ComparatorConfig $config): Comparator
{
return new Comparator(
new MySQLPlatform(),
Expand Down
3 changes: 1 addition & 2 deletions tests/Platforms/SQLServer/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

use Doctrine\DBAL\Platforms\SQLServer\Comparator;
use Doctrine\DBAL\Platforms\SQLServerPlatform;
use Doctrine\DBAL\Schema\Comparator as SchemaComparator;
use Doctrine\DBAL\Schema\ComparatorConfig;
use Doctrine\DBAL\Tests\Schema\AbstractComparatorTestCase;

class ComparatorTest extends AbstractComparatorTestCase
{
protected function createComparator(ComparatorConfig $config): SchemaComparator
protected function createComparator(ComparatorConfig $config): Comparator
{
return new Comparator(new SQLServerPlatform(), '', $config);
}
Expand Down
3 changes: 1 addition & 2 deletions tests/Platforms/SQLite/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

use Doctrine\DBAL\Platforms\SQLite\Comparator;
use Doctrine\DBAL\Platforms\SQLitePlatform;
use Doctrine\DBAL\Schema\Comparator as SchemaComparator;
use Doctrine\DBAL\Schema\ComparatorConfig;
use Doctrine\DBAL\Tests\Schema\AbstractComparatorTestCase;

class ComparatorTest extends AbstractComparatorTestCase
{
protected function createComparator(ComparatorConfig $config): SchemaComparator
protected function createComparator(ComparatorConfig $config): Comparator
{
return new Comparator(new SQLitePlatform(), $config);
}
Expand Down

0 comments on commit 23f3119

Please sign in to comment.