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()
8080 */
8181 public static function keys ()
8282 {
83- return array_keys (static ::toArray ());
83+ return array_keys (self ::toArray ());
8484 }
8585
8686 /**
@@ -95,6 +95,7 @@ public static function toArray()
9595 $ reflection = new \ReflectionClass ($ class );
9696 self ::$ cache [$ class ] = $ reflection ->getConstants ();
9797 }
98+
9899 return self ::$ cache [$ class ];
99100 }
100101
@@ -130,8 +131,7 @@ public static function isValidKey($key)
130131 */
131132 public static function search ($ value )
132133 {
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 ());
135135 }
136136
137137 /**
You can’t perform that action at this time.
0 commit comments