Skip to content
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

Fatal error in UrlSigner #24

Closed
OctaneInteractive opened this issue Oct 19, 2017 · 2 comments
Closed

Fatal error in UrlSigner #24

OctaneInteractive opened this issue Oct 19, 2017 · 2 comments

Comments

@OctaneInteractive
Copy link

Hi, I'm still learning how to use Laravel, so it's possible I've got something wrong.

I've followed the installation and configuration instructions, and I've been over them several times to check that everything is correct.

In: app/Http/Controllers/VenuesManageController.php I have:

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use App\Exceptions\Handler;

use UrlSigner;

use App\Venues;

class VenuesManageController extends Controller
{

	public function get_url()
	{
		echo UrlSigner::sign('https://myapp.com/user/1/unsubscribe', 1);
	}

}

But I get an error:

FatalErrorException

syntax error, unexpected ':', expecting ';' or '{'
in UrlSigner.php (line 17)

What's wrong?

@sebastiandedeyne
Copy link
Member

Hi, looks like you're using an older PHP version that doesn't understand the packages syntax. You'll need to upgrade to PHP 7.0+

@OctaneInteractive
Copy link
Author

OctaneInteractive commented Oct 19, 2017

I ran: php --version and got:

PHP 7.1.8-2

After a bit of investigation, the CLI is using 7, while Apache is using 5.6

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

No branches or pull requests

2 participants