Skip to content

Commit 603d42c

Browse files
Rearrange implode() arguments where necessary to conform to php7.4
1 parent 297473a commit 603d42c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Propel/Generator/Model/MappingModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function getDefaultValueForArray($stringValue)
127127
$values[] = trim($v);
128128
}
129129

130-
$value = implode($values, ' | ');
130+
$value = implode(' | ', $values);
131131
if (empty($value) || ' | ' === $value) {
132132
return null;
133133
}

src/Propel/Generator/Platform/DefaultPlatform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ public function getPhpArrayString($stringValue)
12691269
$values[] = trim($v);
12701270
}
12711271

1272-
$value = implode($values, ' | ');
1272+
$value = implode(' | ', $values);
12731273
if (empty($value) || ' | ' === $value) {
12741274
return null;
12751275
}

src/Propel/Runtime/ActiveQuery/Join.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ public function getClause(&$params)
666666
$conditions[] = $this->getLeftColumn($i) . $this->getOperator($i) . $this->getRightColumn($i);
667667
}
668668
}
669-
$joinCondition = sprintf('(%s)', implode($conditions, ' AND '));
669+
$joinCondition = sprintf('(%s)', implode(' AND ', $conditions));
670670
} else {
671671
$joinCondition = '';
672672
$this->getJoinCondition()->appendPsTo($joinCondition, $params);

0 commit comments

Comments
 (0)