Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Error while running app:install command. #12

Closed
ivanjpolanco opened this issue Jul 6, 2017 · 5 comments
Closed

Error while running app:install command. #12

ivanjpolanco opened this issue Jul 6, 2017 · 5 comments
Labels

Comments

@ivanjpolanco
Copy link

ivanjpolanco commented Jul 6, 2017

I get this error while running the app:install command.

Installing the app

[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected ':', expecting ';' or '{'

Hard to tell where the problem is. Help?

@ivanjpolanco
Copy link
Author

I made a new installation downloading the master... I works fine.

The other one was via composer, which seems outdated.

@joselfonseca
Copy link
Owner

Thanks @ivanjpolanco, I am going to check this as 3.0.1 is master and should not have any issues, by any chance did you see what version it downloaded?

@mostafa6765
Copy link

@joselfonseca , same problem facing when clone no problem . but composer system give error

[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected ':', expecting ';' or '{'

that error is bellow

   public function setTransformer() :TransformerAbstract
    {
        return app(UserTransformer::class);
    }

@joselfonseca
Copy link
Owner

It requires PHP 7, are you using php 5.6?

https://github.com/joselfonseca/laravel-api/blob/master/composer.json#L16

@joselfonseca
Copy link
Owner

Have not been able to reproduce this issue in PHP 7+ if your using php 5.6 it won't work. A constraint for it has been added in composer.json

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants