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

Commit b9840ee

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

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
@@ -24,8 +24,7 @@ A simple wrapper for Dark Sky API
2424
- To forecast:
2525
```
2626
try {
27-
$darksky = new Darksky('API_KEY');
28-
$result = $darksky->forecast('LAT', 'LONG');
27+
$result = (new Darksky('API_KEY'))->forecast('LAT', 'LONG');
2928
} catch(DarkskyException $e) {
3029
// handle the exception
3130
} catch(Exception $e) {

0 commit comments

Comments
 (0)