Skip to content

Commit

Permalink
no need to intersect iterable with Doctrine_Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedzer committed Jun 12, 2024
1 parent b04412b commit b7972d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Import/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ public function buildPhpDocs(array $definition)
if (isset($relation['type']) && $relation['type'] == Doctrine_Relation::MANY) {
$type = 'Doctrine_Collection';
if (!empty($relation['class'])) {
$type .= '&iterable<' . $relation['class'] . '>';
$type .= '<' . $relation['class'] . '>';
}
} else {
$type = $this->_classPrefix . $relation['class'];
Expand Down

0 comments on commit b7972d2

Please sign in to comment.