Skip to content

Commit

Permalink
add typehinting where required
Browse files Browse the repository at this point in the history
  • Loading branch information
riekusdn committed Jul 13, 2022
1 parent 7d55a97 commit bbc1b91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Bugsnag.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ function (ExceptionEvent $event) {
/**
* @inheritdoc
*/
protected function createSettingsModel ()
protected function createSettingsModel (): ?\craft\base\Model
{
return new Settings();
}

/**
* @inheritdoc
*/
protected function settingsHtml (): string
protected function settingsHtml (): ?string
{
return Craft::$app->view->renderTemplate(
'bugsnag/settings',
Expand Down
2 changes: 1 addition & 1 deletion src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function behaviors(): array
/**
* @inheritdoc
*/
public function rules()
public function rules(): array
{
return [
[['serverApiKey'], 'required'],
Expand Down
2 changes: 1 addition & 1 deletion src/services/BugsnagService.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BugsnagService extends Component

public $metadata = [];

public function init ()
public function init (): void
{
$this->settings = Bugsnag::$plugin->getSettings();

Expand Down

0 comments on commit bbc1b91

Please sign in to comment.