We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1035c9f commit 4b84481Copy full SHA for 4b84481
src/Helper.php
@@ -5,11 +5,19 @@
5
namespace Baraja\GitLabApi;
6
7
8
-class Helper
+final class Helper
9
{
10
11
private const FORCE_ARRAY = 0b0001;
12
13
+ /**
14
+ * @throws \Error
15
+ */
16
+ final public function __construct()
17
+ {
18
+ throw new \Error('Class ' . get_class($this) . ' is static and cannot be instantiated.');
19
+ }
20
+
21
/**
22
* Migrated from Nette/Tracy.
23
*
@@ -73,4 +81,4 @@ public static function getLastErrorMessage(): ?string
73
81
return $return;
74
82
}
75
83
76
-}
84
+}
0 commit comments