Merge pull request #14718 from yjerem/fix-implode-argument-order

[2.x] Fix deprecated argument order in calls to implode()
This commit is contained in:
Mark Story 2020-06-17 16:26:37 -04:00 committed by GitHub
commit a9b8c6b60f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -149,7 +149,7 @@ class CompletionShell extends AppShell {
*/
protected function _output($options = array()) {
if ($options) {
return $this->out(implode($options, ' '));
return $this->out(implode(' ', $options));
}
}
}

View file

@ -609,8 +609,8 @@ class FormHelper extends AppHelper {
ksort($locked, SORT_STRING);
$fields += $locked;
$locked = implode(array_keys($locked), '|');
$unlocked = implode($unlockedFields, '|');
$locked = implode('|', array_keys($locked));
$unlocked = implode('|', $unlockedFields);
$hashParts = array(
$this->_lastAction,
serialize($fields),