diff --git a/src/Database/Query.php b/src/Database/Query.php index 0b71aad58cf..12a150f4b3d 100644 --- a/src/Database/Query.php +++ b/src/Database/Query.php @@ -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; @@ -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 */ diff --git a/src/Log/Engine/ConsoleLog.php b/src/Log/Engine/ConsoleLog.php index 0afc1dfe025..db8e72ba0df 100644 --- a/src/Log/Engine/ConsoleLog.php +++ b/src/Log/Engine/ConsoleLog.php @@ -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', $level, $output, $level)); + return (bool)$this->_output->write(sprintf('<%s>%s', $level, $output, $level)); } } diff --git a/src/ORM/LazyEagerLoader.php b/src/ORM/LazyEagerLoader.php index 48d3da19751..ff9fc6b1cd8 100644 --- a/src/ORM/LazyEagerLoader.php +++ b/src/ORM/LazyEagerLoader.php @@ -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)