**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:
kristuff 2021-07-04 13:09:24 +02:00
commit 37b0a2eaa9
9 changed files with 28 additions and 29 deletions

2
.gitignore vendored
View file

@ -1,3 +1 @@
_*
.old*
vendor/*

View file

@ -32,7 +32,7 @@ Deploy with composer:
```json
...
"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)
- [Api documentation](https://kristuff.fr/projects/abuseipdb/doc)
- [Config/Install guide](https://kristuff.fr/projects/abuseipdb/technical#configuration)
- [CLI version](https://kristuff.fr/projects/abuseipdbcli)
- CLI version: [github](https://github.com/kristuff/abuseipdb-cli) | [website](https://kristuff.fr/projects/abuseipdbcli)
License

View file

@ -7,7 +7,9 @@
"authors": [
{
"name": "Kristuff",
"homepage": "https://github.com/kristuff"
"homepage": "https://github.com/kristuff",
"email": "kristuff@kristuff.fr",
"role": "Developer"
}
],
"require": {

View file

@ -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
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
@ -44,8 +44,8 @@ abstract class ApiBase
/**
* AbuseIPDB API v2 categories
* shorname, id (string), long name
* last paramter is false when the category cant' be used alone
* shortname, id (string), long name
* last parameter is false when the category can't be used alone
*
* @static
* @var array

View file

@ -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
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
@ -35,7 +35,7 @@ class ApiHandler extends ApiBase
/**
* @var string
*/
const VERSION = 'v0.9.11';
const VERSION = 'v0.9.12';
/**
* The ips to remove from report messages

View file

@ -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
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/
@ -70,9 +70,9 @@ class ApiResponse
*
* @access public
*
* @return object|null
* @return \stdClass|null
*/
public function getObject(): ?object
public function getObject(): ?\stdClass
{
return $this->decodedResponse;
}

View file

@ -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
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/

View file

@ -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
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/

View file

@ -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
* file that was distributed with this source code.
*
* @version 0.9.11
* @version 0.9.12
* @copyright 2020-2021 Kristuff
*/