ytake / Laravel.Smarty

smarty template engine for laravel
MIT License
85 stars 24 forks source link

Installing issue on Laravel 8.12 #73

Closed abfadel closed 3 years ago

abfadel commented 3 years ago

`Invalid argument supplied for foreach()

at vendor/ytake/laravel-smarty/src/SmartyFactory.php:214 210▕ 211▕ $smarty->error_reporting = Arr::get($config, 'error_reporting', E_ALL & ~E_NOTICE); 212▕ // SmartyTemplate class for laravel 213▕ $smarty->template_class = SmartyTemplate::class; ➜ 214▕ foreach ($config as $key => $value) { 215▕ if (in_array($key, $this->configKeys)) { 216▕ $smarty->{$key} = $value; 217▕ } 218▕ }

  +21 vendor frames 

22 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))`

abfadel commented 3 years ago

cleared bootstrap cache and tried again and it worked. false alarm :)