mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +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) {
|
||||
$type = strtolower($type);
|
||||
$pre = $post = '';
|
||||
$pre = $construct = $post = '';
|
||||
if ($type == 'model') {
|
||||
$construct = "ClassRegistry::init('{$plugin}$fullClassName');\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue