@@ -40,7 +40,7 @@ function getItemsByModifiedIndex(array $items): array
4040function testKeepListAfterIssetIndex (array $ list , int $ i ): void
4141{
4242 if (isset ($ list [$ i ])) {
43- assertType ('list<int> ' , $ list );
43+ assertType ('non-empty- list<int> ' , $ list );
4444 $ list [$ i ] = 21 ;
4545 assertType ('non-empty-list<int> ' , $ list );
4646 $ list [$ i +1 ] = 21 ;
@@ -53,8 +53,8 @@ function testKeepListAfterIssetIndex(array $list, int $i): void
5353function testKeepNestedListAfterIssetIndex (array $ nestedList , int $ i , int $ j ): void
5454{
5555 if (isset ($ nestedList [$ i ][$ j ])) {
56- assertType ('list<list<int>> ' , $ nestedList );
57- assertType ('list<int> ' , $ nestedList [$ i ]);
56+ assertType ('non-empty- list<list<int>> ' , $ nestedList );
57+ assertType ('non-empty- list<int> ' , $ nestedList [$ i ]);
5858 $ nestedList [$ i ][$ j ] = 21 ;
5959 assertType ('non-empty-list<list<int>> ' , $ nestedList );
6060 assertType ('list<int> ' , $ nestedList [$ i ]);
@@ -66,7 +66,7 @@ function testKeepNestedListAfterIssetIndex(array $nestedList, int $i, int $j): v
6666function testKeepListAfterIssetIndexPlusOne (array $ list , int $ i ): void
6767{
6868 if (isset ($ list [$ i ])) {
69- assertType ('list<int> ' , $ list );
69+ assertType ('non-empty- list<int> ' , $ list );
7070 $ list [$ i +1 ] = 21 ;
7171 assertType ('non-empty-list<int> ' , $ list );
7272 }
@@ -77,7 +77,7 @@ function testKeepListAfterIssetIndexPlusOne(array $list, int $i): void
7777function testKeepListAfterIssetIndexOnePlus (array $ list , int $ i ): void
7878{
7979 if (isset ($ list [$ i ])) {
80- assertType ('list<int> ' , $ list );
80+ assertType ('non-empty- list<int> ' , $ list );
8181 $ list [1 +$ i ] = 21 ;
8282 assertType ('non-empty-list<int> ' , $ list );
8383 }
@@ -90,7 +90,7 @@ function testShouldLooseListbyAst(array $list, int $i): void
9090 if (isset ($ list [$ i ])) {
9191 $ i ++;
9292
93- assertType ('list<int> ' , $ list );
93+ assertType ('non-empty- list<int> ' , $ list );
9494 $ list [1 +$ i ] = 21 ;
9595 assertType ('non-empty-array<int<0, max>, int> ' , $ list );
9696 }
@@ -101,7 +101,7 @@ function testShouldLooseListbyAst(array $list, int $i): void
101101function testShouldLooseListbyAst2 (array $ list , int $ i ): void
102102{
103103 if (isset ($ list [$ i ])) {
104- assertType ('list<int> ' , $ list );
104+ assertType ('non-empty- list<int> ' , $ list );
105105 $ list [2 +$ i ] = 21 ;
106106 assertType ('non-empty-array<int<0, max>, int> ' , $ list );
107107 }
0 commit comments