File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 40
40
uses : actions/cache@v1
41
41
with :
42
42
path : ~/.composer/cache/files
43
- key : dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
43
+ key : dependencies-php-${{ matrix.php }}-${{ matrix.stability }}- composer-${{ hashFiles('composer.json') }}
44
44
45
45
- name : Setup PHP
46
46
uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change @@ -421,10 +421,13 @@ public function testForgetSingleKey()
421
421
$ c = new Collection (['foo ' , 'bar ' ]);
422
422
$ c = $ c ->forget (0 )->all ();
423
423
$ this ->assertFalse (isset ($ c ['foo ' ]));
424
+ $ this ->assertFalse (isset ($ c [0 ]));
425
+ $ this ->assertTrue (isset ($ c [1 ]));
424
426
425
427
$ c = new Collection (['foo ' => 'bar ' , 'baz ' => 'qux ' ]);
426
428
$ c = $ c ->forget ('foo ' )->all ();
427
429
$ this ->assertFalse (isset ($ c ['foo ' ]));
430
+ $ this ->assertTrue (isset ($ c ['baz ' ]));
428
431
}
429
432
430
433
public function testForgetArrayOfKeys ()
You can’t perform that action at this time.
0 commit comments