Skip to content

Commit

Permalink
add return type declarations to getVersion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Mar 16, 2021
1 parent 0c4df1f commit 7ca6765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getLogger() {
* it cannot be determined. The version information is based on Git tags.
* @return string version
*/
public function getVersion()
public function getVersion() : string
{
$ver = null;
if (file_exists('.git')) {
Expand Down
3 changes: 2 additions & 1 deletion model/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ public function getPlugins() {
* it cannot be determined. The version information is based on Git tags.
* @return string version
*/
public function getVersion() {
public function getVersion() : string
{
return $this->model->getVersion();
}
}

0 comments on commit 7ca6765

Please sign in to comment.