We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43db94c commit 85a3364Copy full SHA for 85a3364
composer.json
@@ -31,6 +31,6 @@
31
"require-dev": {
32
"phpunit/phpunit": "^9.5",
33
"squizlabs/php_codesniffer": "1.*",
34
- "vimeo/psalm": "^4.6.2"
+ "vimeo/psalm": "^5.2"
35
}
36
src/Enum.php
@@ -176,6 +176,7 @@ public static function values()
176
177
/** @psalm-var T $value */
178
foreach (static::toArray() as $key => $value) {
179
+ /** @psalm-suppress UnsafeGenericInstantiation */
180
$values[$key] = new static($value);
181
182
@@ -297,6 +298,7 @@ public static function __callStatic($name, $arguments)
297
298
$message = "No static method or enum constant '$name' in class " . static::class;
299
throw new \BadMethodCallException($message);
300
301
302
return self::$instances[$class][$name] = new static($array[$name]);
303
304
return clone self::$instances[$class][$name];
@@ -308,7 +310,6 @@ public static function __callStatic($name, $arguments)
308
310
*
309
311
* @return mixed
312
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
- * @psalm-pure
313
*/
314
#[\ReturnTypeWillChange]
315
public function jsonSerialize()
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments