mirror of
https://github.com/kristuff/abuseipdb
synced 2025-08-19 21:13:13 -07:00
v0.9.12
**Fixed** - Incorrect return type in `ApiResponse::getObject()` method (bug introduced in v0.9.8 with PHP strict types) - cleaning, typos
This commit is contained in:
parent
adff27d86d
commit
37b0a2eaa9
9 changed files with 28 additions and 29 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1 @@
|
||||||
_*
|
|
||||||
.old*
|
|
||||||
vendor/*
|
vendor/*
|
|
@ -32,7 +32,7 @@ Deploy with composer:
|
||||||
```json
|
```json
|
||||||
...
|
...
|
||||||
"require": {
|
"require": {
|
||||||
"kristuff/abuseipdb": ">=0.9.11-stable"
|
"kristuff/abuseipdb": "^0.9.12-stable"
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -41,8 +41,7 @@ More infos
|
||||||
|
|
||||||
- [Project website](https://kristuff.fr/projects/abuseipdb)
|
- [Project website](https://kristuff.fr/projects/abuseipdb)
|
||||||
- [Api documentation](https://kristuff.fr/projects/abuseipdb/doc)
|
- [Api documentation](https://kristuff.fr/projects/abuseipdb/doc)
|
||||||
- [Config/Install guide](https://kristuff.fr/projects/abuseipdb/technical#configuration)
|
- CLI version: [github](https://github.com/kristuff/abuseipdb-cli) | [website](https://kristuff.fr/projects/abuseipdbcli)
|
||||||
- [CLI version](https://kristuff.fr/projects/abuseipdbcli)
|
|
||||||
|
|
||||||
|
|
||||||
License
|
License
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Kristuff",
|
"name": "Kristuff",
|
||||||
"homepage": "https://github.com/kristuff"
|
"homepage": "https://github.com/kristuff",
|
||||||
|
"email": "kristuff@kristuff.fr",
|
||||||
|
"role": "Developer"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
||||||
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
||||||
*
|
*
|
||||||
* This file is part of Kristuff\AbsuseIPDB.
|
* This file is part of Kristuff\AbuseIPDB.
|
||||||
*
|
*
|
||||||
* (c) Kristuff <contact@kristuff.fr>
|
* (c) Kristuff <kristuff@kristuff.fr>
|
||||||
*
|
*
|
||||||
* 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.11
|
* @version 0.9.12
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ abstract class ApiBase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbuseIPDB API v2 categories
|
* AbuseIPDB API v2 categories
|
||||||
* shorname, id (string), long name
|
* shortname, id (string), long name
|
||||||
* last paramter is false when the category cant' be used alone
|
* last parameter is false when the category can't be used alone
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @var array
|
* @var array
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
||||||
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
||||||
*
|
*
|
||||||
* This file is part of Kristuff\AbsuseIPDB.
|
* This file is part of Kristuff\AbuseIPDB.
|
||||||
*
|
*
|
||||||
* (c) Kristuff <contact@kristuff.fr>
|
* (c) Kristuff <kristuff@kristuff.fr>
|
||||||
*
|
*
|
||||||
* 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.11
|
* @version 0.9.12
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class ApiHandler extends ApiBase
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = 'v0.9.11';
|
const VERSION = 'v0.9.12';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ips to remove from report messages
|
* The ips to remove from report messages
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
||||||
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
||||||
*
|
*
|
||||||
* This file is part of Kristuff\AbsuseIPDB.
|
* This file is part of Kristuff\AbuseIPDB.
|
||||||
*
|
*
|
||||||
* (c) Kristuff <contact@kristuff.fr>
|
* (c) Kristuff <kristuff@kristuff.fr>
|
||||||
*
|
*
|
||||||
* 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.11
|
* @version 0.9.12
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -70,9 +70,9 @@ class ApiResponse
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @return object|null
|
* @return \stdClass|null
|
||||||
*/
|
*/
|
||||||
public function getObject(): ?object
|
public function getObject(): ?\stdClass
|
||||||
{
|
{
|
||||||
return $this->decodedResponse;
|
return $this->decodedResponse;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
||||||
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
||||||
*
|
*
|
||||||
* This file is part of Kristuff\AbsuseIPDB.
|
* This file is part of Kristuff\AbuseIPDB.
|
||||||
*
|
*
|
||||||
* (c) Kristuff <contact@kristuff.fr>
|
* (c) Kristuff <kristuff@kristuff.fr>
|
||||||
*
|
*
|
||||||
* 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.11
|
* @version 0.9.12
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
||||||
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
||||||
*
|
*
|
||||||
* This file is part of Kristuff\AbsuseIPDB.
|
* This file is part of Kristuff\AbuseIPDB.
|
||||||
*
|
*
|
||||||
* (c) Kristuff <contact@kristuff.fr>
|
* (c) Kristuff <kristuff@kristuff.fr>
|
||||||
*
|
*
|
||||||
* 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.11
|
* @version 0.9.12
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,14 @@
|
||||||
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
* / ___ \| |_) | |_| \__ \ __/| || __/| |_| | |_) |
|
||||||
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
* /_/ \_\_.__/ \__,_|___/\___|___|_| |____/|____/
|
||||||
*
|
*
|
||||||
* This file is part of Kristuff\AbsuseIPDB.
|
* This file is part of Kristuff\AbuseIPDB.
|
||||||
*
|
*
|
||||||
* (c) Kristuff <contact@kristuff.fr>
|
* (c) Kristuff <kristuff@kristuff.fr>
|
||||||
*
|
*
|
||||||
* 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.11
|
* @version 0.9.12
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue