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 Mar 31, 2024
1 parent 9957751 commit 5558185
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"require": {
"php": ">=8.0.0 <8.3.0",
"php": ">=8.0.0 <8.4.0",
"laravie/codex-common": "^2.1"
},
"require-dev": {
Expand Down Expand Up @@ -48,5 +48,6 @@
"php-http/discovery": true
}
},
"prefer-stable": true,
"minimum-stability": "dev"
}
6 changes: 0 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public function useVersion(string $version)

/**
* Get API endpoint URL.
*
* @return string
*/
public function getApiEndpoint(): ?string
{
Expand All @@ -91,7 +89,6 @@ public function getApiVersion(): string
* Get versioned resource (service).
*
*
* @return \Laravie\Codex\Contracts\Request
*
* @throws \InvalidArgumentException
*/
Expand All @@ -115,9 +112,6 @@ public function uses(string $service, ?string $version = null): Contracts\Reques

/**
* Handle uses using via.
*
* @param \Laravie\Codex\Contracts\Request $request
* @return \Laravie\Codex\Contracts\Request
*/
public function via(Contracts\Request $request): Contracts\Request
{
Expand Down
5 changes: 0 additions & 5 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function __construct()
* @param \Laravie\Codex\Contracts\Endpoint|string $path
* @param array<string, mixed> $headers
* @param \Psr\Http\Message\StreamInterface|\Laravie\Codex\Common\Payload|array|null $body
* @return \Laravie\Codex\Contracts\Response
*/
protected function send(string $method, $path, array $headers = [], $body = []): Contracts\Response
{
Expand All @@ -64,9 +63,6 @@ protected function send(string $method, $path, array $headers = [], $body = []):

/**
* Resolve the responder class.
*
*
* @return \Laravie\Codex\Contracts\Response
*/
protected function responseWith(ResponseInterface $message): Contracts\Response
{
Expand Down Expand Up @@ -114,7 +110,6 @@ final protected function mergeApiBody(array $body = []): array
* Get API Endpoint.
*
* @param array<int, string>|string $path
* @return \Laravie\Codex\Contracts\Endpoint
*/
protected function getApiEndpoint($path = []): Contracts\Endpoint
{
Expand Down

0 comments on commit 5558185

Please sign in to comment.