Skip to content
Permalink
Browse files

Be forward compatible to PHP 7's "Uniform Variable Syntax"

  • Loading branch information...
ravage84 committed Aug 10, 2014
1 parent d114fa1 commit 120bd37ffaf9387a86295589fe745afe3a3a84d1
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Console/Command/Task/ControllerTask.php
@@ -248,10 +248,10 @@ public function confirmController($controllerName, $useDynamicScaffold, $helpers
);
foreach ($properties as $var => $title) {
if (count($$var)) {
if (count(${$var})) {
$output = '';
$length = count($$var);
foreach ($$var as $i => $propElement) {
$length = count(${$var});
foreach (${$var} as $i => $propElement) {
if ($i != $length - 1) {
$output .= ucfirst($propElement) . ', ';
} else {

0 comments on commit 120bd37

Please sign in to comment.
You can’t perform that action at this time.