Skip to content

Commit

Permalink
Update return types in Module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Mar 20, 2024
1 parent 025a2c5 commit f6a022c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public function setCurrentPage(Page $page)
$this->_currentPage = $page;
}

public function getCurrentPage()
public function getCurrentPage(): Page
{
return $this->_currentPage;
}

private function getNitroConfig()
private function getNitroConfig(): ConfigResponse
{
Yii::beginProfile('flyo-config', __METHOD__);
$config = (new ConfigApi(null, Configuration::getDefaultConfiguration()))->config();
Expand All @@ -108,7 +108,7 @@ private function getNitroConfig()
/**
* @return VersionResponse
*/
public static function getVersionApi()
public static function getVersionApi(): VersionResponse
{
if (self::$versionApi === null) {
Yii::beginProfile('flyo-version', __METHOD__);
Expand Down

0 comments on commit f6a022c

Please sign in to comment.