jaesung2061 / anvel

Angular 2 Laravel Starter Kit
94 stars 25 forks source link

PHP Parse error #6

Closed JustinRvt closed 8 years ago

JustinRvt commented 8 years ago

Hello,

First of all, thanks for your project, I was looking for a PHP micro framework and here are you with Lumen+Angular2. I followed your instructions but I always get the same error :

Parse error: syntax error, unexpected '.', expecting ',' or ';' in /var/www/html/bootstrap/app.php on line 3

But it looks ok to me :

<?php

const APP_ROOT = __DIR__.'/../';

require_once __DIR__.'/../vendor/autoload.php';

try {
    (new Dotenv\Dotenv(__DIR__.'/../'))->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
    //
}

(I tried on 2 different servers)

If you have any clue, I'd take it. Thanks a lot!

jaesung2061 commented 8 years ago

Hey this issue is the same as #5. You need to upgrade your PHP version to >=5.5.9.

JustinRvt commented 8 years ago

You MIGHT laugh, but I had exactly this version. Upgrading to 5.6 just did the trick. Can't wait to play around with your work.

Thank you so much Jaesung

jaesung2061 commented 8 years ago

Nice, I should update the composer.json file to reflect the correct minimum. And feel free to make contributions if you'd like.

On Thursday, July 21, 2016, Јустин notifications@github.com wrote:

You MIGHT laugh, but I had exactly this version. Upgrading to 5.6 just did the trick. Can't wait to play around with your work.

Thank you so much Jaesung

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaesung2061/anvel/issues/6#issuecomment-234467126, or mute the thread https://github.com/notifications/unsubscribe-auth/AH7GUg6ZafRBq5GqEkyqkRxaPRW3yuP9ks5qYGb0gaJpZM4JR6Cv .