Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit ff0f781

Browse files
authored
Update README.md
1 parent b55c856 commit ff0f781

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ try {
3636
- To use the time machine:
3737
```
3838
try {
39-
$darksky = new Darksky('API_KEY');
40-
$result = $darksky->timeMachine('LAT', 'LONG', 'UNIX_TIME');
39+
$result = (new Darksky('API_KEY'))->timeMachine('LAT', 'LONG', 'UNIX_TIME');
4140
} catch(DarkskyException $e) {
4241
// handle the exception
4342
} catch(Exception $e) {

0 commit comments

Comments
 (0)