Laravel-admin: Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

Created on 22 Jan 2018  ·  5Comments  ·  Source: z-song/laravel-admin

  • Laravel Version: 5.5.32
  • PHP Version: 7.2.0
  • Laravel-admin: 1.5.8

Description:

在创建和编辑时,点击保存报500 , 查询代码 显示
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

但是数据更新成功了

Steps To Reproduce:

可留个邮箱,我发网址登录账号和密码

All 5 comments

新情况:原来是php7.0, 现在换成7.2了 ,没有上述报错

Superb thanks a lot.. i also had the same issue, and resolved by switching php version

how to switch 7.2 to 7.0 in php

还有一种情况是,我重启了laragon也不行,后来结束进程,重新打开就可以了,好奇怪

同样的问题,我是在使用邮件发送的时候报的错,提高php版本就好了……不知道为什么

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benny-sun picture benny-sun  ·  3Comments

amun1303 picture amun1303  ·  3Comments

zhenyangze picture zhenyangze  ·  3Comments

evans-kim picture evans-kim  ·  3Comments

donglianyou picture donglianyou  ·  3Comments