Closed jranesio closed 4 years ago
@jranesio it's not related to bake itself, it's because new cake require most recent twig (in my setup it's v3.0.3 now) and twig greater than 1.4 deprecate conditions in loop definition.
I have created pull request for fix
Thanks, solved
PHP: 7.2 Cake: 4.0.3 Command: cake bake all table_name --theme AdminLTE
Error: Exception: Unexpected token "name" of value "if" ("end of statement block" expected). In [C:\xampp\htdocs\projetos\cake4admlte/vendor/maiconpinto/cakephp-adminlte-theme/templates\bake\Template\index.twig, line 63]
2020-03-29 11:50:59 Error: [Twig\Error\SyntaxError] Unexpected token "name" of value "if" ("end of statement block" expected). in C:\xampp\htdocs\projetos\cake4admlte/vendor/maiconpinto/cakephp-adminlte-theme/templates\bake\Template\index.twig on line 63 Stack Trace: