mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removed invalid 'Helper' suffix in UpgradeShell::helpers()
This commit is contained in:
parent
6c9c36bc0e
commit
13ebd60b26
1 changed files with 1 additions and 0 deletions
|
@ -225,6 +225,7 @@ class UpgradeShell extends Shell {
|
|||
}
|
||||
$helpers = array_merge($pluginHelpers, $helpers);
|
||||
foreach ($helpers as $helper) {
|
||||
$helper = preg_replace('/Helper$/', '', $helper);
|
||||
$oldHelper = strtolower(substr($helper, 0, 1)).substr($helper, 1);
|
||||
$patterns[] = array(
|
||||
"\${$oldHelper} to \$this->{$helper}",
|
||||
|
|
Loading…
Add table
Reference in a new issue