Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OrangeTanguine opened this issue Feb 17, 2021 · 0 comments

Comments

@OrangeTanguine
Copy link
Contributor

OrangeTanguine commented Feb 17, 2021

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

mugi516 added a commit to Nesstech/phalcon-debugbar that referenced this issue Dec 1, 2021
mugi516 added a commit to Nesstech/phalcon-debugbar that referenced this issue Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant