今天调试phalcon的一个接口时候碰到如下提示:
Deprecated: mongogo::mongogo(): The Mongo class is deprecated, please use the MongoClient class in /***/db/mongo.php on
line 10
经过一番搜寻,发现只要在出现提示错误语句的前面加上@即可关闭错误提示;
若想要关闭所有的错误提示,可在php文件中加入error_reporting(0);
参照:https://www.godaddy.com/garage/webpro/development/suppressing-warning-messages-php-deprecated-functions/