aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/WidgetContainer.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-11 09:52:05 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-07-11 09:52:05 +0000
commit8f48ee027f2e4e3ed9e69a6e2910ed577196813e (patch)
tree628c5678de84ad6d3e00df2287798fd50eb1e152 /lib/classes/WidgetContainer.php
parent2054b4c0815aa508623165d7fc0b810bafc16cc0 (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.php18
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 = [];