File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ $loader->addClassMap([
105
105
106
106
### Optional
107
107
108
- 它旨在消除过多的if判断
108
+ It aims to eliminate excessive if judgments.
109
109
110
110
Not use Optional:
111
111
Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ final public function equals(mixed $variable = null): bool
74
74
/**
75
75
* Returns all possible values as an array
76
76
*
77
- * @psalm-suppress ImpureStaticProperty
78
- *
79
77
* @return array<string, mixed> Constant name in key, constant value in value
80
78
*/
81
79
public static function toArray (): array
@@ -199,15 +197,13 @@ public function __construct(mixed $value)
199
197
}
200
198
201
199
/** @psalm-suppress ImplicitToStringCast assertValidValueReturningKey returns always a string but psalm has currently an issue here */
202
- $ this ->key = static ::assertValidValueReturningKey ($ value );
200
+ $ this ->key = static ::mustGetKeyByValue ($ value );
203
201
204
202
/** @psalm-var T */
205
203
$ this ->value = $ value ;
206
204
}
207
205
208
206
/**
209
- * @psalm-pure
210
- * @psalm-suppress InvalidCast
211
207
* @return string
212
208
*/
213
209
public function __toString ()
You can’t perform that action at this time.
0 commit comments