Skip to content
Permalink
Browse files

Fix phpstan

  • Loading branch information...
dereuromark committed Sep 25, 2017
1 parent c3c9e96 commit 363b258fb6f388a6e11d79830e1327f91ace28d2
Showing with 1 addition and 2 deletions.
  1. +1 −2 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;

0 comments on commit 363b258

Please sign in to comment.
You can’t perform that action at this time.