diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-03 20:05:20 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-03 20:05:20 +0000 |
| commit | 430074ffa822c2456cabbbe77413fd2d615db7d4 (patch) | |
| tree | 69fa7661f44e0e202641d872b2074958c48d5599 /lib/classes/ContentBar.php | |
| parent | 989e9fb694954a976d80fbfc67e37f417cf25ffa (diff) | |
adjustments due to phpstan report, fixes #2257
Closes #2257
Merge request studip/studip!1490
Diffstat (limited to 'lib/classes/ContentBar.php')
| -rw-r--r-- | lib/classes/ContentBar.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/classes/ContentBar.php b/lib/classes/ContentBar.php index 53b3dfc..0e6a664 100644 --- a/lib/classes/ContentBar.php +++ b/lib/classes/ContentBar.php @@ -36,18 +36,19 @@ class ContentBar public static function get(): ContentBar { if (static::$instance === null) { - static::$instance = new static; + static::$instance = new static(); } return static::$instance; } /** * Private constructor to ensure that the singleton Get() method is always - * used. + * used. The constructor is finalized so that the call to get() will never + * fail. * * @see ContentBar::get */ - protected function __construct() + protected final function __construct() { } |
