@@ -80,7 +80,7 @@ public function __toString()
80
80
*/
81
81
public static function keys ()
82
82
{
83
- return array_keys (self ::toArray ());
83
+ return array_keys (static ::toArray ());
84
84
}
85
85
86
86
/**
@@ -92,7 +92,7 @@ public static function values()
92
92
{
93
93
$ values = array ();
94
94
95
- foreach (self ::toArray () as $ key => $ value ) {
95
+ foreach (static ::toArray () as $ key => $ value ) {
96
96
$ values [$ key ] = new static ($ value );
97
97
}
98
98
@@ -123,7 +123,7 @@ public static function toArray()
123
123
*/
124
124
public static function isValid ($ value )
125
125
{
126
- return in_array ($ value , self ::toArray (), true );
126
+ return in_array ($ value , static ::toArray (), true );
127
127
}
128
128
129
129
/**
@@ -135,7 +135,7 @@ public static function isValid($value)
135
135
*/
136
136
public static function isValidKey ($ key )
137
137
{
138
- $ array = self ::toArray ();
138
+ $ array = static ::toArray ();
139
139
return isset ($ array [$ key ]);
140
140
}
141
141
@@ -148,7 +148,7 @@ public static function isValidKey($key)
148
148
*/
149
149
public static function search ($ value )
150
150
{
151
- return array_search ($ value , self ::toArray (), true );
151
+ return array_search ($ value , static ::toArray (), true );
152
152
}
153
153
154
154
/**
0 commit comments