Skip to content

Commit

Permalink
Improve type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed May 30, 2023
1 parent af0f866 commit e026c37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/cms/classes/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1212,9 +1212,8 @@ public function renderComponent($name, $parameters = [])
/**
* Returns an existing instance of the controller.
* If the controller doesn't exists, returns null.
* @return mixed Returns the controller object or null.
*/
public static function getController()
public static function getController(): ?self
{
return self::$instance;
}
Expand Down

0 comments on commit e026c37

Please sign in to comment.