Skip to content

Commit

Permalink
Corrected issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyElias authored Oct 14, 2022
1 parent 9e00095 commit 1a7390f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Analytics/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ abstract public function getName(): string;
/**
* Global Headers
*
* @var array
* @var array<mixed>
*/
protected $headers = [
'Content-Type' => '',
Expand Down Expand Up @@ -133,7 +133,7 @@ public function createEvent(Event $event): bool
* @return array|string
* @throws \Exception
*/
public function call(string $method, string $path = '', array $headers = array(), array $params = array()): array|string
public function call(string $method, string $path = '', array $headers = array(), array $params = array()): array<mixed>|string
{
$headers = array_merge($this->headers, $headers);
$ch = curl_init((str_contains($path, 'http') ? $path : $this->endpoint . $path . (($method == 'GET' && !empty($params)) ? '?' . http_build_query($params) : '')));
Expand Down Expand Up @@ -217,7 +217,7 @@ public function call(string $method, string $path = '', array $headers = array()
*
* @param array $data
* @param string $prefix
* @return array
* @return array<mixed>
*/
protected function flatten(array $data, string $prefix = ''): array {
$output = [];
Expand Down Expand Up @@ -249,4 +249,4 @@ protected function logError(Exception $e) {
Console::error('[Error] File: ' . $e->getFile());
Console::error('[Error] Line: ' . $e->getLine());
}
}
}

0 comments on commit 1a7390f

Please sign in to comment.