Skip to content

Commit

Permalink
Fix few errors reported by phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 18, 2017
1 parent f3a64e6 commit aa23283
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Database/Query.php
Expand Up @@ -104,7 +104,7 @@ class Query implements ExpressionInterface, IteratorAggregate
* The object responsible for generating query placeholders and temporarily store values
* associated to each of those.
*
* @var \Cake\Database\ValueBinder|false|null
* @var \Cake\Database\ValueBinder|null
*/
protected $_valueBinder;

Expand Down Expand Up @@ -1870,7 +1870,7 @@ public function getValueBinder()
* to the statement object.
*
* @deprecated 3.5.0 Use getValueBinder() for the getter part instead.
* @param \Cake\Database\ValueBinder|false|null $binder new instance to be set. If no value is passed the
* @param \Cake\Database\ValueBinder|null $binder new instance to be set. If no value is passed the
* default one will be returned
* @return $this|\Cake\Database\ValueBinder
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Log/Engine/ConsoleLog.php
Expand Up @@ -91,6 +91,6 @@ public function log($level, $message, array $context = [])
$message = $this->_format($message, $context);
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($level) . ': ' . $message;

return $this->_output->write(sprintf('<%s>%s</%s>', $level, $output, $level));
return (bool)$this->_output->write(sprintf('<%s>%s</%s>', $level, $output, $level));
}
}
1 change: 1 addition & 0 deletions src/ORM/LazyEagerLoader.php
Expand Up @@ -76,6 +76,7 @@ protected function _getQuery($objects, $contain, $source)
return $entity->{$method}($primaryKey);
});

/** @var \Cake\ORM\Query $query */
$query = $source
->find()
->select((array)$primaryKey)
Expand Down

0 comments on commit aa23283

Please sign in to comment.