Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 1, 2021
1 parent 086c818 commit ff7faa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -21,15 +21,15 @@
},
"require": {
"php": "^7.2 || ^8.0",
"laravie/codex-common": "^1.4.2"
"laravie/codex-common": "^1.4.3"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.0.1",
"laravie/codex-filter": "^1.2",
"laravie/codex-filter": "^1.2.1",
"mockery/mockery": "^1.3.1",
"php-http/guzzle7-adapter": "^1.0",
"php-http/multipart-stream-builder": "^1.0",
"phpstan/phpstan": "0.12.x-dev",
"phpstan/phpstan": "^0.12.90",
"phpunit/phpunit": "^8.4 || ^9.3.3"
},
"suggest": {
Expand Down
3 changes: 2 additions & 1 deletion phpstan.neon.dist
Expand Up @@ -6,6 +6,7 @@ parameters:
- src

# The level 8 is the highest level
level: 5
level: 8

treatPhpDocTypesAsCertain: false
checkMissingIterableValueType: false
2 changes: 1 addition & 1 deletion src/Request.php
Expand Up @@ -128,6 +128,6 @@ final protected function mergeApiBody(array $body = []): array
*/
protected function getApiEndpoint($path = []): Contracts\Endpoint
{
return new Endpoint($this->client->getApiEndpoint(), $path);
return new Endpoint($this->client->getApiEndpoint() ?? '', $path);
}
}

0 comments on commit ff7faa8

Please sign in to comment.