Framework: PHP Parse error

Created on 11 Oct 2017  路  4Comments  路  Source: laravel/framework

  • Laravel Version: 5.5.13
  • PHP Version: 7.1.2
  • Database Driver & Version: Mysql

Description:

Error when i deploy to server

Steps To Reproduce:

Error:

Generating optimized autoload files                                                                                                                                                              
  > post-install-cmd: php artisan clear-compiled                                                                                                                                                   
  PHP Parse error:  syntax error, unexpected '?' in /###/releases/1/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233                         
  Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255  

All 4 comments

php -v PHP 7.1.10

php -l src/Illuminate/Foundation/helpers.php
No syntax errors detected in src/Illuminate/Foundation/helpers.php

Are you sure you are using php 7+?

This repo is for bug tracking. Use the forums or slack channel for solving your issue

As Dylan said here is not the place for such issues, but anyways...

You are not using PHP 7 that is for sure.

Thank for your replies. I resolved my issue. I will post to forum if i have next issue 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RomainSauvaire picture RomainSauvaire  路  3Comments

shopblocks picture shopblocks  路  3Comments

CupOfTea696 picture CupOfTea696  路  3Comments

digirew picture digirew  路  3Comments

JamborJan picture JamborJan  路  3Comments