dqwyghl0649 2019-05-10 19:08 采纳率: 0%
浏览 284

Composer读错了php版本?

When I try to run composer update it gives me that error message

This package requires php ^7.1.3 but your PHP version (7.0.33) does not satisfy that requirement.

and when I try composer dump-autoload on my laravel app it gives me

Parse error: syntax error, unexpected '=' in /home2/elmohare/public_html/okttob/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 380

NOTE :: the app works great on my localhost but I have this problem only on my server

when I try php -v it gives me

PHP 7.3.5 (cli) (built: May  7 2019 16:13:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group

and I searched about this problem, all people say that apache version is different of php cli version, but the real problem is I've made phpinfo() file on my server to see the apache php verison and it gave me also

PHP Version 7.3.5

So it seems right, anyone knows the solution?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 matlab求解平差
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制
    • ¥20 usb设备兼容性问题
    • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
    • ¥15 安装svn网络有问题怎么办
    • ¥15 vue2登录调用后端接口如何实现
    • ¥85 永磁型步进电机PID算法