-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Parse Error : syntax error on line 1 > 1 | <?php PHP_VERSION #64
Comments
php 5.6 |
I'm having the same issue with PHP 8.0.2 and Laravel 8.12 |
I'm getting this error too. Please help... |
Seems <?php PHP_VERSION is not right PHP syntax because PHP_VERSION is constant. ❯ php
<?php PHP_VERSION
Parse error: syntax error, unexpected end of file in Standard input code on line 2 Below syntax is ok ❯ php
<?php
echo PHP_VERSION;
7.4.8 Can you provide any example template? |
It happens with the default Laravel start page.... The sample page that is provided after a fresh Laravel 8 installation. |
It seems parse error while formatting To workaround this, you can use <div class="ml-4 text-center text-sm text-gray-500 sm:text-right sm:ml-0">
Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ phpversion() }})
</div> CLI test ❯ echo "{{ phpversion() }}" | ./bin/blade-formatter --stdin
{{ phpversion() }}
|
Ok, I can live with that. But honestly I think this problem should be fixed for other users who tend to not read the docs and will abandon the plugin or think it's not working... Just my two cents... On the other hand I must say you did a very decent job with this plugin, using it on a daily basis! Taihen yoku gambarimashita, Shuhei-san. Doumo arigatou gozaimasu! Greetings from Germany 🍺 to Japan 🗾, Florian |
Just released v0.7.3 with this issue fixed. |
Template
Parse Error : syntax error on line 1 > 1 | <?php PHP_VERSION
Context (Environment)
Parse Error : syntax error on line 1 > 1 | <?php PHP_VERSION
php 7.4
laravel 8
Description
The text was updated successfully, but these errors were encountered: