8000 Add typehint to isInteger(), fix tests · sun/symfony@86ab4b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86ab4b3

Browse files
committed
Add typehint to isInteger(), fix tests
1 parent a26a690 commit 86ab4b3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ private function load()
347347
* be persisted or added to the idmodel map before. Otherwise an
348348
* exception is thrown.
349349
*
350-
* @param object $model The model for which to get the identifier
351-
* @throws FormException If the model does not exist
350+
* @param object $model The model for which to get the identifier
351+
* @throws FormException If the model does not exist
352352
*/
353353
private function getIdentifierValues($model)
354354
{
@@ -367,10 +367,12 @@ private function getIdentifierValues($model)
367367
/**
368368
* Whether this column in an integer
369369
*
370+
* @param ColumnMap $column
371+
*
370372
* @return boolean
371373
*/
372-
private function isInteger($col)
374+
private function isInteger(\ColumnMap $column)
373375
{
374-
return $col->getPdoType() === \PDO::PARAM_INT;
376+
return $column->getPdoType() === \PDO::PARAM_INT;
375377
}
376378
}

src/Symfony/Bridge/Propel1/Tests/Fixtures/ItemQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getTableMap()
3131

3232
public function getPrimaryKeys()
3333
{
34-
$cm = new ColumnMap('id', $this);
34+
$cm = new \ColumnMap('id', new \TableMap());
3535
$cm->setType('INTEGER');
3636

3737
return array('id' => 877C $cm);

src/Symfony/Bridge/Propel1/Tests/Fixtures/ReadOnlyItemQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getTableMap()
2222

2323
public function getPrimaryKeys()
2424
{
25-
$cm = new ColumnMap('id', $this);
25+
$cm = new \ColumnMap('id', new \TableMap());
2626
$cm->setType('INTEGER');
2727

2828
return array('id' => $cm);

0 commit comments

Comments
 (0)
0