Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8945bcc

Browse files
committed
minor #14202 [DoctrineBridge] Removed useless code (webmozart)
This PR was merged into the 2.7 branch. Discussion ---------- [DoctrineBridge] Removed useless code | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This PR removes a useless (duplicate) check introduced in #14050. Commits ------- d851a05 [DoctrineBridge] Removed useless code
2 parents d0676af + d851a05 commit 8945bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(ObjectManager $om, ClassMetadata $classMetadata)
5858
$this->om = $om;
5959
$this->classMetadata = $classMetadata;
6060
$this->singleId = 1 === count($ids);
61-
$this->intId = $this->singleId && 1 === count($ids) && in_array($idType, array('integer', 'smallint', 'bigint'));
61+
$this->intId = $this->singleId && in_array($idType, array('integer', 'smallint', 'bigint'));
6262
$this->idField = current($ids);
6363
}
6464

0 commit comments

Comments
 (0)