diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-07-11 09:52:05 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-07-11 09:52:05 +0000 |
| commit | 8f48ee027f2e4e3ed9e69a6e2910ed577196813e (patch) | |
| tree | 628c5678de84ad6d3e00df2287798fd50eb1e152 /lib/classes/WidgetContainer.php | |
| parent | 2054b4c0815aa508623165d7fc0b810bafc16cc0 (diff) | |
fix errors of type 'Unsafe usage of new static', fixes #1245
Closes #1245
Merge request studip/studip!760
Diffstat (limited to 'lib/classes/WidgetContainer.php')
| -rw-r--r-- | lib/classes/WidgetContainer.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/classes/WidgetContainer.php b/lib/classes/WidgetContainer.php index 39665a9..b4aaa8c 100644 --- a/lib/classes/WidgetContainer.php +++ b/lib/classes/WidgetContainer.php @@ -10,6 +10,14 @@ abstract class WidgetContainer { /** + * Protected constructor to ensure that the singleton Get() method is always + * used. + * + * @see WidgetContainer::Get + */ + abstract protected function __construct(); + + /** * The singleton instance of the container */ protected static $instances = null; @@ -31,16 +39,6 @@ abstract class WidgetContainer } /** - * Private constructor to ensure that the singleton Get() method is always - * used. - * - * @see WidgetContainer::Get - */ - protected function __construct() - { - } - - /** * Contains the widgets of the container */ protected $widgets = []; |
