简体   繁体   English

使用 kreait/firebase-php 时未定义的 class 常量“版本”

[英]Undefined class constant 'VERSION' when using kreait/firebase-php

I am getting the following error when try to send push notification to mobile app using FCM from my PHP application.尝试使用 FCM 从我的 PHP 应用程序向移动应用程序发送推送通知时,出现以下错误。

Undefined class constant 'VERSION'未定义的 class 常量“版本”

file- /usr/share/nginx/html/project-folder/vendor/kreait/firebase-php/src/Firebase/Exception/MessagingApiExceptionConverter.php文件-/usr/share/nginx/html/project-folder/vendor/kreait/firebase-php/src/Firebase/Exception/MessagingApiExceptionConverter.php

kreait/firebase-php is being used.正在使用kreait/firebase-php

Issue solved when I changed version of kreait / firebase-php当我更改kreait / firebase-php的版本时问题已解决

composer require kreait/firebase-php 4.17

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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