You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected function compileSource(string! viewCode, bool extendsMode = false) -> string
compileSource method returns string, but sometimes it returns array
Example:
if extendsMode {
let finalCompilation[] = block;
} else {
let finalCompilation .= block;
}
}
}
return finalCompilation;
... which leads to a crash: PHP Fatal error: Phalcon\Mvc\View\Engine\Volt\Compiler::compileSource(): Return value must be of type string, array returned
Better adjust interface to string | array
The text was updated successfully, but these errors were encountered:
oleghind
changed the title
Wrong interface on compileSource leads to fatal error
[BUG] Wrong interface on compileSource leads to fatal error
Jun 7, 2024
protected function compileSource(string! viewCode, bool extendsMode = false) -> string
compileSource method returns string, but sometimes it returns array
Example:
... which leads to a crash:
PHP Fatal error: Phalcon\Mvc\View\Engine\Volt\Compiler::compileSource(): Return value must be of type string, array returned
Better adjust interface to
string | array
The text was updated successfully, but these errors were encountered: