@@ -255,14 +255,14 @@ |
||
255 | 255 | $fails++; |
256 | 256 | try { |
257 | 257 | $this->queryId = @mysqli_query($this->linkId, $queryString, MYSQLI_STORE_RESULT); |
258 | - if (in_array((int)@mysqli_errno($this->linkId), [2006, 3101, 1180])) { |
|
258 | + if (in_array((int) @mysqli_errno($this->linkId), [2006, 3101, 1180])) { |
|
259 | 259 | //error_log("got ".@mysqli_errno($this->linkId)." sql error fails {$fails} on query {$queryString} from {$line}:{$file}"); |
260 | 260 | usleep(500000); // 0.5 second |
261 | 261 | } else { |
262 | 262 | $onlyRollback = false; |
263 | 263 | } |
264 | 264 | } catch (\mysqli_sql_exception $e) { |
265 | - if (in_array((int)$e->getCode(), [2006, 3101, 1180])) { |
|
265 | + if (in_array((int) $e->getCode(), [2006, 3101, 1180])) { |
|
266 | 266 | //error_log("got ".$e->getCode()." sql error fails {$fails}"); |
267 | 267 | usleep(500000); // 0.5 second |
268 | 268 | } else { |