Skip to content

Commit 41c28c5

Browse files
committed
throw error and upgrade php lib
1 parent 4c45af6 commit 41c28c5

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33
All Notable changes to `Laravel AdWords Targeting Idea Service` will be documented in this file.
4+
## [1.8.0] - 2021-04-11
5+
- Add Compatibility With PHP 8.0
6+
- Using version 52.0 of googleads/googleads-php-lib
7+
- Throw Exceptions for API errors with Code 0
8+
49
## [1.7.0] - 2020-10-27
510
- Add Compatibility With Laravel 8
611
- Drop support for Laravel 7

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"require": {
2222
"php": "^7.3|^8.0",
2323
"laravel/framework": "^8.0",
24-
"googleads/googleads-php-lib": "^49.0",
25-
"schulzefelix/laravel-data-transfer-object": "^1.4.1"
24+
"googleads/googleads-php-lib": "^52.0",
25+
"schulzefelix/laravel-data-transfer-object": "^1.4.0"
2626
},
2727
"require-dev": {
28-
"mockery/mockery": "^1.3",
29-
"orchestra/testbench": "^6.0",
28+
"mockery/mockery": "^1.4.2",
29+
"orchestra/testbench": "^5.0|^6.0",
3030
"phpunit/phpunit" : "^8.0|^9.0"
3131
},
3232
"autoload": {

src/ExponentialBackoff.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ public function execute(callable $function, array $arguments = [])
6161
}
6262
}
6363

64-
if (in_array($exception->getCode(), [400, 403])) {
64+
if (in_array($exception->getCode(), [0, 400, 403])) {
6565
break;
6666
}
6767

68+
6869
if ($retryAttempt >= $this->retries) {
6970
break;
7071
}

0 commit comments

Comments
 (0)