Skip to content

Commit

Permalink
refactor: PHPStan code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Apr 27, 2024
1 parent eb41929 commit fe2cff1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TwigProfiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class TwigProfiler extends Plugin
// =========================================================================

/**
* @var TwigProfiler
* @var ?TwigProfiler
*/
public static $plugin;
public static $plugin = null;

/**
* @var string The name of the rendering template
Expand All @@ -66,6 +66,7 @@ public function init()
parent::init();
self::$plugin = $this;

/** @var Settings $settings */
$settings = $this->getSettings();
Craft::$app->view->registerTwigExtension(new ProfilerTwigExtension());

Expand Down

0 comments on commit fe2cff1

Please sign in to comment.