Skip to content

Commit a55568a

Browse files
committed
The static declaration must come after the visibility declaration
1 parent c6092db commit a55568a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MabeEnum/Enum.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ final public function getOrdinal()
128128
* @throws InvalidArgumentException On an unknwon or invalid value
129129
* @throws LogicException On ambiguous constant values
130130
*/
131-
final static public function get($value)
131+
final public static function get($value)
132132
{
133133
if ($value instanceof static) {
134134
$value = $value->getValue();
@@ -212,7 +212,7 @@ final public static function getByOrdinal($ordinal)
212212
*
213213
* @return void
214214
*/
215-
final static public function clear()
215+
final public static function clear()
216216
{
217217
$class = get_called_class();
218218
unset(self::$instances[$class], self::$constants[$class]);
@@ -224,7 +224,7 @@ final static public function clear()
224224
* @return array
225225
* @throws LogicException On ambiguous constant values
226226
*/
227-
final static public function getConstants()
227+
final public static function getConstants()
228228
{
229229
return self::detectConstants(get_called_class());
230230
}
@@ -236,7 +236,7 @@ final static public function getConstants()
236236
* @return array
237237
* @throws LogicException On ambiguous constant values
238238
*/
239-
static private function detectConstants($class)
239+
private static function detectConstants($class)
240240
{
241241
if (!isset(self::$constants[$class])) {
242242
$reflection = new ReflectionClass($class);

0 commit comments

Comments
 (0)