Skip to content

Commit

Permalink
Merge pull request #41 from Chris53897/feature/patch-2
Browse files Browse the repository at this point in the history
fix: implicit nullable parameters (part 2)
  • Loading branch information
bresam authored Oct 4, 2024
2 parents e97a9a0 + 65ddc39 commit 6b8a074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Overlay/InfoWindow.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class InfoWindow implements ExtendableInterface, OptionsAwareInterface
* @param string $content
* @param string $type
*/
public function __construct($content, $type = InfoWindowType::DEFAULT_, Coordinate $position = null)
public function __construct($content, $type = InfoWindowType::DEFAULT_, ?Coordinate $position = null)
{
$this->setContent($content);
$this->setType($type);
Expand Down Expand Up @@ -127,7 +127,7 @@ public function getPosition()
return $this->position;
}

public function setPosition(Coordinate $position = null)
public function setPosition(?Coordinate $position = null)
{
$this->position = $position;
}
Expand All @@ -148,7 +148,7 @@ public function getPixelOffset()
return $this->pixedOffset;
}

public function setPixelOffset(Size $pixelOffset = null)
public function setPixelOffset(?Size $pixelOffset = null)
{
$this->pixedOffset = $pixelOffset;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Service/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ public function hasBusinessAccount()
}

/**
* @return BusinessAccount
* @return ?BusinessAccount
*/
public function getBusinessAccount()
{
return $this->businessAccount;
}

/**
* @param BusinessAccount $businessAccount
* @param ?BusinessAccount $businessAccount
*/
public function setBusinessAccount(BusinessAccount $businessAccount = null)
public function setBusinessAccount(?BusinessAccount $businessAccount = null)
{
$this->businessAccount = $businessAccount;
}
Expand Down

0 comments on commit 6b8a074

Please sign in to comment.