Skip to content

Commit

Permalink
refactor: PHPStan cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 15, 2024
1 parent 8bab891 commit ad8d255
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Seomatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Seomatic extends Plugin
// =========================================================================

/**
* @var null|Seomatic
* @var ?Seomatic
*/
public static ?Seomatic $plugin;

Expand Down Expand Up @@ -228,7 +228,9 @@ public function init(): void
$this->controllerNamespace = 'nystudio107\seomatic\console\controllers';
}
// Initialize properties
self::$settings = self::$plugin->getSettings();
/** @var Settings $settings */
$settings = self::$plugin->getSettings();
self::$settings = $settings;
self::$devMode = Craft::$app->getConfig()->getGeneral()->devMode;
self::$view = Craft::$app->getView();
self::$cacheDuration = self::$devMode
Expand Down

0 comments on commit ad8d255

Please sign in to comment.