Skip to content

Commit 459edfb

Browse files
committed
bumped version to 1.0.5
updated parameter type in docblock updated README
1 parent b5a7a44 commit 459edfb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ try {
9090
'2024-07-15T07:01:13Z'
9191
);
9292
print_r($devices);
93+
94+
echo 'Effective URI: ' . $unifiClient->getEffectiveUri() . PHP_EOL;
95+
echo 'Transfer time: ' . $unifiClient->getTransferTime() . ' seconds' . PHP_EOL;
96+
echo 'Response status: ' . $unifiClient->getResponseStatusCode() . PHP_EOL;
9397
} catch (Exception $e) {
9498
echo "Error: " . $e->getMessage() . "\n";
9599
}
96-
97-
echo 'Effective URI: ' . $unifiClient->getEffectiveUri() . PHP_EOL;
98-
echo 'Transfer time: ' . $unifiClient->getTransferTime() . ' seconds' . PHP_EOL;
99-
echo 'Response status: ' . $unifiClient->getResponseStatusCode() . PHP_EOL;
100100
```
101101

102102
## Getter and Setter Methods

src/Client/UniFiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class UniFiClient
3333
private static ?UniFiClient $instance = null;
3434

3535
/** @var string Version of the UniFi Cloud API client */
36-
private const VERSION = '1.0.4';
36+
private const VERSION = '1.0.5';
3737

3838
/** @var Client Guzzle HTTP client instance */
3939
private Client $client;

src/Service/DeviceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(UniFiClient $client)
4141
* If time is provided, filters devices by the specified time.
4242
*
4343
* @param array<string> $hostIds Optional. An array of host IDs to filter the devices.
44-
* @param mixed $time Optional. A time parameter to filter the devices.
44+
* @param null|string $time Optional. A time parameter to filter the devices.
4545
* @return array The list of devices, format can vary based on implementation.
4646
* @throws Exception If there is an error in the HTTP request, or if the host IDs are not strings.
4747
*/

0 commit comments

Comments
 (0)