summaryrefslogtreecommitdiff
path: root/src/application/mystic/forum/utils/StaticClass.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/mystic/forum/utils/StaticClass.php')
-rw-r--r--src/application/mystic/forum/utils/StaticClass.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/application/mystic/forum/utils/StaticClass.php b/src/application/mystic/forum/utils/StaticClass.php
new file mode 100644
index 0000000..e55ada9
--- /dev/null
+++ b/src/application/mystic/forum/utils/StaticClass.php
@@ -0,0 +1,10 @@
+<?php
+declare(strict_types=1);
+
+namespace mystic\forum\utils;
+
+trait StaticClass {
+ public function __construct() {
+ throw new \RuntimeException("Cannot instantiate static class " . self::class);
+ }
+}