kint-php / kint

Kint - Advanced PHP dumper
https://kint-php.github.io/kint/
MIT License
2.78k stars 292 forks source link

Invalid argument supplied for foreach() #259

Closed Ivan-Baranov closed 7 years ago

Ivan-Baranov commented 7 years ago

Invalid argument supplied for foreach() - /vendor/kint.php(307) : eval()'d code:1 Kint v.2.2

jnvsor commented 7 years ago

Can you give me more info? What is the error message when using composer (Which shows the source file and line of the issue) and what data are you dumping to cause the warning?

Can you send a var_export or serialize of the data?

I'm about to leave for a week's vacation, so I won't be able to ask for follow-up info. Sorry in advance for the delay.

Ivan-Baranov commented 7 years ago

Excuse me. The trouble in config, app_root_dirs has been defined as string, but not as [string].

jnvsor commented 7 years ago

@Ivan-Baranov Glad you figured it out, and thanks for responding