Php syntax error in LoggerInterface.php

1,172 views
Skip to first unread message

did...@wihphotels.com

unread,
Dec 16, 2021, 8:05:42 AM12/16/21
to AdWords API and Google Ads API Forum
Hello

we are migrating from Google Ads API V7 to V9
We have installed php client librairy V12
When we launch the app (php7.3) we  get PHP Parse error:  syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/metaio-dev-di/google-ads-php/V12/vendor/psr/log/src/LoggerInterface.php on line 30

Line 30 of  LoggerInterface.php  :
   public function emergency(string|\Stringable $message, array $context = []): void;

we don't find what is wrong

thank you for your help

Google Ads API Forum Advisor

unread,
Dec 16, 2021, 9:15:44 PM12/16/21
to did...@wihphotels.com, adwor...@googlegroups.com
Hi Didier,

Thank you for raising your concern.

I completely understand your concern. However, since the issue is more on client library configuration, then I would suggest to reach out to the author of the client library as they are more equipped here. You can reach out to the author of the PHP client library via this link.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2TLnTe:ref
Reply all
Reply to author
Forward
0 new messages