Skip to content

Commit 08d31f4

Browse files
author
Marcel Gwerder
committed
Fixed php 5.4 compatibility issue introduced by previous commit
1 parent c61b444 commit 08d31f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,9 @@ protected function getQualifiedColumnName($column, $table = null)
728728
{
729729
//Check whether there is a matching column expression that contains an
730730
//alias and should therefore not be turned into a qualified column name.
731-
$isAlias = !empty(array_filter($this->query->columns ?: [], function($column) {
731+
$isAlias = count(array_filter($this->query->columns ?: [], function($column) {
732732
return stripos($column, ' as ') !== false;
733-
}));
733+
})) > 0;
734734

735735
if (strpos($column, '.') === false && !$isAlias) {
736736
return $table ?: $this->query->from.'.'.$column;

0 commit comments

Comments
 (0)