简体   繁体   中英

syntax error, unexpected '?'

This is the line the error is on:

return app('cache')->get($arguments[0], $arguments[1] ?? null);

I have already tried updating the PHP to version 7 and its still not working.

尝试这个:

return app('cache')->get($arguments[0], isset($arguments[1]) ? $arguments[1] : null);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM