Skip to content

Commit

Permalink
Extending route_path to also be object
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSteveKing committed May 24, 2024
1 parent b9c9ff7 commit 70a19c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataObjects/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class Request
* @param string $timestamp The timestamp of the request in the format: YYYY-MM-DD hh:mm:ss.
* @param string $ip The real IP address of the request.
* @param string $url The full URL of the request including query data if any.
* @param null|string $route_path The path of the route from the framework.
* @param null|string|object $route_path The path of the route from the framework.
* @param string $user_agent The User Agent of the request.
* @param null|Method $method The HTTP method of the request, uppercase if possible.
* @param array<int|string,string> $headers The request headers for the request in key:value format.
Expand All @@ -23,7 +23,7 @@ public function __construct(
public string $timestamp,
public string $ip,
public string $url,
public null|string $route_path,
public null|string|object $route_path,
public string $user_agent,
public null|Method $method,
public array $headers,
Expand All @@ -37,7 +37,7 @@ public function __construct(
* timestamp: string,
* ip: string,
* url: string,
* route_path: null|string,
* route_path: null|string|object,
* user_agent: string,
* method: string|null,
* headers: array,
Expand Down

0 comments on commit 70a19c3

Please sign in to comment.