Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix errors reported by phpstan in ORM package
  • Loading branch information
ADmad committed Aug 20, 2017
1 parent e32dc0e commit c757ee1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions phpstan.neon
Expand Up @@ -22,6 +22,7 @@ parameters:
- '#Access to an undefined property Psr\\Http\\Message\\UriInterface::\$webroot#'
- '#Access to an undefined property Psr\\Http\\Message\\UriInterface::\$base#'
- '#Call to an undefined method Cake\\Collection\\Iterator\\ZipIterator::getInnerIterator\(\)#'
- '#Call to an undefined method Cake\\ORM\\ResultSet::getInnerIterator\(\)#'
- '#Result of method Cake\\Http\\Response::send\(\) \(void\) is used#'
- '#Method Cake\\View\\Form\\ContextInterface::val\(\) invoked with 2 parameters, 1 required#'
- '#Access to an undefined property Exception::\$queryString#'
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Association/BelongsToMany.php
Expand Up @@ -510,7 +510,7 @@ protected function _appendNotMatching($query, $options)
$subquery = $this->_appendJunctionJoin($subquery, $conditions);

$query
->andWhere(function ($exp) use ($subquery, $conds) {
->where(function ($exp) use ($subquery, $conds) {
$identifiers = [];
foreach (array_keys($conds) as $field) {
$identifiers = new IdentifierExpression($field);
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/EagerLoader.php
Expand Up @@ -813,7 +813,7 @@ protected function _collectKeys($external, $query, $statement)
* Helper function used to iterate a statement and extract the columns
* defined in $collectKeys
*
* @param \Cake\Database\BufferedStatement $statement The statement to read from.
* @param \Cake\Database\Statement\BufferedStatement $statement The statement to read from.
* @param array $collectKeys The keys to collect
* @return array
*/
Expand Down

0 comments on commit c757ee1

Please sign in to comment.