mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
initialize $construct variable
This commit is contained in:
parent
a5fabcc1dc
commit
d1475b1fd3
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ class TestTask extends BakeTask {
|
||||||
*/
|
*/
|
||||||
public function generateConstructor($type, $fullClassName, $plugin) {
|
public function generateConstructor($type, $fullClassName, $plugin) {
|
||||||
$type = strtolower($type);
|
$type = strtolower($type);
|
||||||
$pre = $post = '';
|
$pre = $construct = $post = '';
|
||||||
if ($type == 'model') {
|
if ($type == 'model') {
|
||||||
$construct = "ClassRegistry::init('{$plugin}$fullClassName');\n";
|
$construct = "ClassRegistry::init('{$plugin}$fullClassName');\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue