Skip to content

Commit eedc184

Browse files
committed
add dock blocks and type hints
1 parent 8dcdf5c commit eedc184

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

tests/Propel/Tests/Generator/Platform/PgsqlPlatformTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Propel\Generator\Model\IdMethodParameter;
1818
use Propel\Generator\Model\PropelTypes;
1919
use Propel\Generator\Model\Table;
20+
use Propel\Generator\Model\Unique;
2021
use Propel\Generator\Platform\PgsqlPlatform;
2122

2223
/**
@@ -602,8 +603,12 @@ public function testAddIndexDDL($index)
602603

603604
/**
604605
* @dataProvider providerForTestGetUniqueIndexDDL
606+
*
607+
* @param \Propel\Generator\Model\Unique $index
608+
*
609+
* @return void
605610
*/
606-
public function testAddUniqueIndexDDL($index)
611+
public function testAddUniqueIndexDDL(Unique $index): void
607612
{
608613
$expected = '
609614
ALTER TABLE "foo" ADD CONSTRAINT "babar" UNIQUE ("bar1");

tests/Propel/Tests/Generator/Platform/PlatformMigrationTestProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ public function providerForTestGetModifyTableIndicesDDL()
198198
<table name="foo">
199199
<column name="id" primaryKey="true" type="INTEGER" autoIncrement="true" />
200200
<column name="bar" type="INTEGER" />
201-
<column name="bax" type="VARCHAR" size="12" required="true" />
202201
<column name="baz" type="VARCHAR" size="12" required="true" />
202+
<column name="bax" type="VARCHAR" size="12" required="true" />
203203
<index name="bar_fk">
204204
<index-column name="bar"/>
205205
</index>
@@ -218,9 +218,9 @@ public function providerForTestGetModifyTableIndicesDDL()
218218
<table name="foo">
219219
<column name="id" primaryKey="true" type="INTEGER" autoIncrement="true" />
220220
<column name="bar" type="INTEGER" />
221-
<column name="bax" type="VARCHAR" size="12" required="true" />
222-
<column name="bay" type="VARCHAR" size="12" required="true" />
223221
<column name="baz" type="VARCHAR" size="12" required="true" />
222+
<column name="bay" type="VARCHAR" size="12" required="true" />
223+
<column name="bax" type="VARCHAR" size="12" required="true" />
224224
<index name="bar_baz_fk">
225225
<index-column name="id"/>
226226
<index-column name="bar"/>

tests/Propel/Tests/Generator/Platform/PlatformTestProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ public function providerForTestGetIndexDDL()
247247
];
248248
}
249249

250-
public function providerForTestGetUniqueIndexDDL()
250+
/**
251+
* @return array
252+
*/
253+
public function providerForTestGetUniqueIndexDDL(): array
251254
{
252255
$table = new Table('foo');
253256
$table->setIdentifierQuoting(true);

0 commit comments

Comments
 (0)