From e90e4716ec4eff9518ba36e228341a1b554e2be6 Mon Sep 17 00:00:00 2001 From: Jeremy Ruten Date: Wed, 17 Jun 2020 11:44:23 -0600 Subject: [PATCH] Fix deprecated argument order in calls to implode() --- lib/Cake/Console/Command/CompletionShell.php | 2 +- lib/Cake/View/Helper/FormHelper.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Console/Command/CompletionShell.php b/lib/Cake/Console/Command/CompletionShell.php index 3d6fa17e0..21ee0e761 100644 --- a/lib/Cake/Console/Command/CompletionShell.php +++ b/lib/Cake/Console/Command/CompletionShell.php @@ -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)); } } } diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index eabea8dfb..0081b7754 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -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),