@@ -40,22 +40,20 @@ public function testSerialzationRoundtrip( EntityIdValue $id ) {
4040 }
4141
4242 public function instanceProvider () {
43+ /** @var EntityId[] $ids */
4344 $ ids = [
44- 'Q1 ' => new ItemId ( 'Q1 ' ),
45- 'Q42 ' => new ItemId ( 'Q42 ' ),
46- 'Q31337 ' => new ItemId ( 'Q31337 ' ),
47- 'Q2147483647 ' => new ItemId ( 'Q2147483647 ' ),
48- 'P1 ' => new PropertyId ( 'P1 ' ),
49- 'P42 ' => new PropertyId ( 'P42 ' ),
50- 'P31337 ' => new PropertyId ( 'P31337 ' ),
51- 'X567 ' => new CustomEntityId ( 'X567 ' ),
52- 'foo:P678 ' => new PropertyId ( 'foo:P678 ' ),
45+ new ItemId ( 'Q1 ' ),
46+ new ItemId ( 'Q2147483647 ' ),
47+ new PropertyId ( 'P1 ' ),
48+ new PropertyId ( 'P31337 ' ),
49+ new CustomEntityId ( 'X567 ' ),
50+ new PropertyId ( 'foo:P678 ' ),
5351 ];
5452
5553 $ argLists = [];
5654
57- foreach ( $ ids as $ k => $ id ) {
58- $ argLists [$ k ] = [ new EntityIdValue ( $ id ) ];
55+ foreach ( $ ids as $ id ) {
56+ $ argLists [$ id -> getSerialization () ] = [ new EntityIdValue ( $ id ) ];
5957 }
6058
6159 return $ argLists ;
0 commit comments