[Insight] Boolean should be compared strictly - in Query.php, line 544
bethrezen opened this issue · 0 comments
bethrezen commented
With booleans, only strict comparison (with
===
operator) should be used to lower bug risks and to improve performances.
* @param $params
* @return string
*/
protected function buildSelect($columns, &$params)
{
if ($columns == null || empty($columns)) {
return 'RETURN ' . $this->from;
}
if (!is_array($columns)) {
return 'RETURN ' . $columns;
Posted from SensioLabsInsight