Skip to content

Commit

Permalink
Remove redundant nullable classifier.
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Aug 13, 2023
1 parent 1fb48b6 commit b6e608b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AirQuality.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface AirQuality
* @throws InvalidAccessToken
* @throws UnknownStation
*/
public function getObservationByStation(?string $station = null): void;
public function getObservationByStation(string $station = null): void;

/**
* Retrieves the real-time Air Quality Index observation monitoring station name (or city name)
Expand Down
2 changes: 1 addition & 1 deletion src/WAQI.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
* @throws InvalidAccessToken
* @throws UnknownStation
*/
public function getObservationByStation(?string $station = null): void
public function getObservationByStation(string $station = null): void
{
try {
$this->request('feed/'.($station ?? 'here').'/');
Expand Down

0 comments on commit b6e608b

Please sign in to comment.