- Affected version
- XF2.1 RC1
ParseError: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) src/vendor/minishlink/web-push/src/WebPush.php:24
Code:
#0 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/www-ro...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Minishlink\\WebP...')
#2 src/XF/Service/PushNotification.php(274): spl_autoload_call('Minishlink\\WebP...')
#3 src/XF/Service/PushNotification.php(127): XF\Service\PushNotification->getWebPushObject()
#4 src/XF/Service/PusherTrait.php(64): XF\Service\PushNotification->sendNotifications()
#5 src/XF/Repository/UserAlert.php(147): XF\Service\Alert\Pusher->push()
#6 src/XF/Repository/UserAlert.php(111): XF\Repository\UserAlert->insertAlert(1, 701, 'mrnd', 'user', 1, 'following', Array)
#7 src/XF/Service/User/Follow.php(83): XF\Repository\UserAlert->alert(Object(SV\ModeratorEssentials\XF\Entity\User), 701, 'mrnd', 'user', 1, 'following')
#8 src/XF/Service/User/Follow.php(60): XF\Service\User\Follow->sendFollowingAlert()
#9 src/addons/xenMade/AFOR/XF/Pub/Controller/Register.php(26): XF\Service\User\Follow->follow()
#10 src/XF/Pub/Controller/Register.php(420): xenMade\AFOR\XF\Pub\Controller\Register->finalizeRegistration(Object(SV\ModeratorEssentials\XF\Entity\User))
#11 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(xenMade\AFOR\XF\Pub\Controller\Register), NULL)
#13 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(xenMade\AFOR\XF\Pub\Controller\Register), NULL)
#14 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#16 src/XF.php(392): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}