google-ads-php
google-ads-php copied to clipboard
ulrichsg - deprecated
Hello,
I'm currently setting everything up, and I'm getting several deprecated messages from "ulrichsg/getopt-php/src/GetOpt.php".
I am using PHP 8.1. Is there an updated version for the GetOpt.php somewhere ? Or what am I doing wrong ?
Im calling everything like this for testing
$trackingsource_gclid = "test124"; $EK_WKDM_Date_Google = "2024-02-01 07:08:00 +00:00"; $marge = 10.00; $instanz = new Google\Ads\GoogleAds\Examples\Remarketing\UploadOfflineConversion(); $instanz->main($trackingsource_gclid, $EK_WKDM_Date_Google, $marge);
And this are the deprecated messages
Return type of GetOpt\GetOpt::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
google_upload/google-ads-php/vendor/ulrichsg/getopt-php/src/GetOpt.php:583
Return type of GetOpt\GetOpt::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
google_upload/google-ads-php/vendor/ulrichsg/getopt-php/src/GetOpt.php:529
Return type of GetOpt\GetOpt::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
google-ads-php/vendor/ulrichsg/getopt-php/src/GetOpt.php:545
Return type of GetOpt\GetOpt::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
google-ads-php/vendor/ulrichsg/getopt-php/src/GetOpt.php:561
Return type of GetOpt\GetOpt::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
wp-content/themes/wkdm/google_upload/google-ads-php/vendor/ulrichsg/getopt-php/src/GetOpt.php:572
Return type of GetOpt\GetOpt::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
google-ads-php/vendor/ulrichsg/getopt-php/src/GetOpt.php:509