diff --git a/src/ORM/Query.php b/src/ORM/Query.php index 5871271df31..d071a6a2fc4 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -424,7 +424,7 @@ public function clearContain() * Used to recursively add contained association column types to * the query. * - * @param \Cake\Datasource\RepositoryInterface $table The table instance to pluck associations from. + * @param \Cake\ORM\Table|\Cake\Datasource\RepositoryInterface $table The table instance to pluck associations from. * @param \Cake\Database\TypeMap $typeMap The typemap to check for columns in. * This typemap is indirectly mutated via Cake\ORM\Query::addDefaultTypes() * @param array $associations The nested tree of associations to walk. @@ -433,7 +433,6 @@ public function clearContain() protected function _addAssociationsToTypeMap($table, $typeMap, $associations) { foreach ($associations as $name => $nested) { - /* @var \Cake\ORM\Table $table */ $association = $table->association($name); if (!$association) { continue;