Skip to content

[SOLUTION] Warning: Illegal offset type in /vendor/snowair/phalcon-debugbar/src/PhalconDebugbar.php on line 419 / 432 #73

@OrangeTanguine

Description

@OrangeTanguine

Hi
A new bug and the solution.
For this warning : Warning: Illegal offset type in /vendor/snowair/phalcon-debugbar/src/PhalconDebugbar.php on line 419 replace line 419

$templates[$viewFilePath]['startTime'] = microtime(true);

with

if(is_array($viewFilePath)){
                foreach($viewFilePath as $infos_path){
                    $templates[$infos_path]['startTime'] = microtime(true);
                }
}else{
 $templates[$viewFilePath]['startTime'] = microtime(true);
}

Do the same line 432 (line 441 after previous change)

See you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions