Skip to content

Commit

Permalink
chore: adding some missed return types (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
hisorange authored Dec 13, 2023
2 parents 419f001 + f88d4f1 commit dafa208
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Contracts/ResultInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,5 @@ public function deviceModel(): string;
*
* @return array
*/
public function toArray();
public function toArray(): array;
}
2 changes: 1 addition & 1 deletion src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public function jsonSerialize(): array
/**
* @inheritdoc
*/
public function toArray()
public function toArray(): array
{
return get_object_vars($this);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Stages/DeviceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __invoke(PayloadInterface $payload): PayloadInterface
* @param string $prefix
* @return array
*/
protected function parseVersion(string $version, string $prefix)
protected function parseVersion(string $version, string $prefix): array
{
$response = [];

Expand Down

0 comments on commit dafa208

Please sign in to comment.