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()) { protected function _output($options = array()) {
if ($options) { 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); ksort($locked, SORT_STRING);
$fields += $locked; $fields += $locked;
$locked = implode(array_keys($locked), '|'); $locked = implode('|', array_keys($locked));
$unlocked = implode($unlockedFields, '|'); $unlocked = implode('|', $unlockedFields);
$hashParts = array( $hashParts = array(
$this->_lastAction, $this->_lastAction,
serialize($fields), serialize($fields),