jasonhinkle / phreeze

Phreeze Framework for PHP
http://phreeze.com/
GNU Lesser General Public License v2.1
377 stars 207 forks source link

Laravel error yield #242

Open leandrohanazono opened 8 years ago

leandrohanazono commented 8 years ago

the error is. Generated using lavarel template Parse error: syntax error, unexpected 'yield' (T_YIELD), expecting '(' in C:\xampp\htdocs\phreeze\libs\laravel\helpers.php on line 563

jasonhinkle commented 8 years ago

oh hmm, interesting. yield is now a reserved word in PHP so that should probably be removed from laravel helpers.php. What happens if you just comment out that whole function altogether?

gustavoml12 commented 8 years ago

Boa noite, conheci o Pheeze hoje e estou muito animado com este framework, no entanto, estou tendo dificuldades para gerar aplicativos com o pacote do laravel, o erro é semelhante a este no entanto não consegui executar a ação indicada acima. O erro indicado no meu aplicativo é o seguinte.

Parse error: syntax error, unexpected 'yield' (T_YIELD), expecting '(' in phar://C:/xampp/htdocs/medicina/libs/phreeze-3.3.8.phar/laravel/helpers.php on line 563

rovanni commented 7 years ago

Hi

Correcting the error when using Laravel / Blade Template Engine: the error is. Generated using lavarel template

Parse error: syntax error, unexpected 'yield' (T_YIELD), expecting '(' in C:\xampp\htdocs\phreeze\libs\laravel\helpers.php on line 563

Solution found in: https://github.com/laravel/laravel/commit/3298407

Changing library files: phreeze\libs\laravel\ blade.php helpers.php section.php

Corrected Files: laravel.zip

Thank you!


Texto em português

Oi

Corrigindo o erro ao usar o Laravel / Blade Template Engine: O erro é. Gerado usando o template de lavarel

Erro de análise: erro de sintaxe, 'yield' inesperado (T_YIELD), esperando '(' em C:\xampp\htdocs\phreeze\libs\larave\helpers.php na linha 563

Solução encontrada em: Https://github.com/laravel/laravel/commit/3298407

Alterando arquivos de biblioteca: phreeze\libs\ laravel \ Blade.php Helpers.php Section.php

Arquivos com erros corrigidos: [Laravel.zip] (https://github.com/jasonhinkle/phreeze/files/936909/laravel.zip)

Obrigado!