Skip to content

Commit

Permalink
Add contract for createPlatform()'s return type
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed May 3, 2020
1 parent 0e7254e commit 0fc25af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Doctrine\Tests\DBAL\Platforms;

use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff;
Expand All @@ -20,6 +21,11 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
/** @var PostgreSqlPlatform */
protected $platform;

/**
* @return PostgreSqlPlatform
*/
abstract public function createPlatform() : AbstractPlatform;

public function getGenerateTableSql() : string
{
return 'CREATE TABLE test (id SERIAL NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))';
Expand Down

0 comments on commit 0fc25af

Please sign in to comment.