File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function __toString()
80
80
*/
81
81
public static function keys ()
82
82
{
83
- return array_keys (static ::toArray ());
83
+ return array_keys (self ::toArray ());
84
84
}
85
85
86
86
/**
@@ -95,6 +95,7 @@ public static function toArray()
95
95
$ reflection = new \ReflectionClass ($ class );
96
96
self ::$ cache [$ class ] = $ reflection ->getConstants ();
97
97
}
98
+
98
99
return self ::$ cache [$ class ];
99
100
}
100
101
@@ -130,8 +131,7 @@ public static function isValidKey($key)
130
131
*/
131
132
public static function search ($ value )
132
133
{
133
- // TODO: Replace combine with self::toArray()
134
- return array_search ($ value , array_combine (self ::keys (), self ::toArray ()), true );
134
+ return array_search ($ value , self ::toArray ());
135
135
}
136
136
137
137
/**
You can’t perform that action at this time.
0 commit comments