From f86674463c6d3d8a46f7a5c78209aea96fc10d27 Mon Sep 17 00:00:00 2001 From: pyBlockin <54303354+pyBlockin@users.noreply.github.com> Date: Tue, 19 May 2020 16:25:23 +0800 Subject: [PATCH] fix ErrorException The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence --- IGt.Push.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IGt.Push.php b/IGt.Push.php index 88209b8..847546f 100644 --- a/IGt.Push.php +++ b/IGt.Push.php @@ -449,7 +449,7 @@ private function getListAppContentId($message, $taskGroupName = null) { return $rep['contentId']; }else{ - throw new Exception("host:[".$this->host."]" + "获取contentId失败:" . $rep); + throw new Exception("host:[".$this->host."]" . "获取contentId失败:" . $rep); } } @@ -505,7 +505,7 @@ public function getAPNContentId($appId, $message) if($rep['result'] == 'ok'){ return $rep['contentId']; }else{ - throw new Exception("host:[".$this->host."]" + "获取contentId失败:".$rep); + throw new Exception("host:[".$this->host."]" . "获取contentId失败:".$rep); } }