Hello,
I am getting the same error. I have tried this on PHP v. 5.6.32 and PHP v. 
7.2 and still getting the same error. The googleads/googleads-php-lib 
libaray works fine up to v201710, the moment i upgrade it ti v201802 it 
crashes. Can you please help ?

Thanks
Pete

On Wednesday, 7 February 2018 19:36:29 UTC, Mathieu Dubreuil wrote:
>
> Hi,
>
> I have been trying to update from an old version of AdWords (2016). I am 
> currently getting an error :
> *Parse error*: syntax error, unexpected ':', expecting ';' or '{' in 
> *googleads-php-lib/vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php*
>  on 
> line 
> *59*
> I took a look at the file and here is the line causing the error : 
>
> private function supports(string $class): bool
>
>
> From what I could gather, the problem is the " : bool " part and my IDE 
> told me something that might be the problem : Return type declaration is 
> available in PHP 7 only. I am currently using PHP 5.4 and was wondering if 
> it was required to have PHP 7 to use the API, as I thought I saw somewhere 
> the API was compatible with 5.4 or newer. Is there any option besides 
> upgrading my PHP version? I installed the lib using Composer.
>
> Thank you!
> Mathieu
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/961e8257-dc1a-47fd-a5c9-c84fa9adc1d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Error with s... Mathieu Dubreuil
    • Re: Err... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
    • Re: Err... P Anand
    • Re: Err... P Anand
      • Re:... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum

Reply via email to