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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/800d104f-e9bb-4037-82f1-8a4b2a6b1f64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.