**Fixed**
- clear method is broken in 0.9.5.
This commit is contained in:
kristuff 2021-01-08 16:31:43 +01:00
commit 1a882c0155
4 changed files with 7 additions and 7 deletions

View file

@ -34,7 +34,7 @@ Deploy with composer:
```json ```json
... ...
"require": { "require": {
"kristuff/abuseipdb": ">=0.9.5-stable" "kristuff/abuseipdb": ">=0.9.6-stable"
}, },
``` ```

View file

@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
* *
* @version 0.9.5 * @version 0.9.6
* @copyright 2020-2021 Kristuff * @copyright 2020-2021 Kristuff
*/ */

View file

@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
* *
* @version 0.9.5 * @version 0.9.6
* @copyright 2020-2021 Kristuff * @copyright 2020-2021 Kristuff
*/ */
@ -274,7 +274,7 @@ class ApiHandler extends ApiDefintion
'ipAddress' => $ip, 'ipAddress' => $ip,
]; ];
$response = $this->apiRequest('check', $data, 'DELETE', $returnArray) ; $response = $this->apiRequest('clear-address', $data, 'DELETE', $returnArray) ;
return json_decode($response, $returnArray); return json_decode($response, $returnArray);
} }
@ -327,7 +327,7 @@ class ApiHandler extends ApiDefintion
* @param bool $plainText True to get the response in plain text list. Default is false * @param bool $plainText True to get the response in plain text list. Default is false
* @param bool $returnArray True to return an indexed array instead of object (when $plainText is set to false). Default is false. * @param bool $returnArray True to return an indexed array instead of object (when $plainText is set to false). Default is false.
* *
* @return object|array * @return object|array|string
* @throws \InvalidArgumentException When maxAge is not a numeric value, when maxAge is less than 1 or * @throws \InvalidArgumentException When maxAge is not a numeric value, when maxAge is less than 1 or
* greater than 365, or when ip value was not set. * greater than 365, or when ip value was not set.
*/ */
@ -501,7 +501,7 @@ class ApiHandler extends ApiDefintion
* @access public * @access public
* @static * @static
* @param string $filePath The file's full path * @param string $filePath The file's full path
* @param bool $trowError Throw error on true or silent process. Default is true * @param bool $throwError Throw error on true or silent process. Default is true
* *
* @return object|null * @return object|null
* @throws \Exception * @throws \Exception

View file

@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
* *
* @version 0.9.5 * @version 0.9.6
* @copyright 2020-2021 Kristuff * @copyright 2020-2021 Kristuff
*/ */