File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 31
31
"require-dev" : {
32
32
"phpunit/phpunit" : " ^9.5" ,
33
33
"squizlabs/php_codesniffer" : " 1.*" ,
34
- "vimeo/psalm" : " ^4.6.2"
34
+ "vimeo/psalm" : " ^4.6.2 || ^5.2 "
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ public static function values()
176
176
177
177
/** @psalm-var T $value */
178
178
foreach (static ::toArray () as $ key => $ value ) {
179
+ /** @psalm-suppress UnsafeGenericInstantiation */
179
180
$ values [$ key ] = new static ($ value );
180
181
}
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;
298
299
throw new \BadMethodCallException ($ message );
299
300
}
301
+ /** @psalm-suppress UnsafeGenericInstantiation */
300
302
return self ::$ instances [$ class ][$ name ] = new static ($ array [$ name ]);
301
303
}
302
304
return clone self ::$ instances [$ class ][$ name ];
@@ -308,7 +310,6 @@ public static function __callStatic($name, $arguments)
308
310
*
309
311
* @return mixed
310
312
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
311
- * @psalm-pure
312
313
*/
313
314
#[\ReturnTypeWillChange]
314
315
public function jsonSerialize ()
You can’t perform that action at this time.
0 commit comments