Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 25, 2017
1 parent c3c9e96 commit 363b258
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ORM/Query.php
Expand Up @@ -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.
Expand All @@ -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;
Expand Down

0 comments on commit 363b258

Please sign in to comment.