Skip to content

Commit 71f859d

Browse files
Merge branch '7.x'
2 parents f54b584 + d20d72d commit 71f859d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/cache@v1
4141
with:
4242
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') }}
4444

4545
- name: Setup PHP
4646
uses: shivammathur/setup-php@v2

tests/Support/SupportCollectionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,13 @@ public function testForgetSingleKey()
421421
$c = new Collection(['foo', 'bar']);
422422
$c = $c->forget(0)->all();
423423
$this->assertFalse(isset($c['foo']));
424+
$this->assertFalse(isset($c[0]));
425+
$this->assertTrue(isset($c[1]));
424426

425427
$c = new Collection(['foo' => 'bar', 'baz' => 'qux']);
426428
$c = $c->forget('foo')->all();
427429
$this->assertFalse(isset($c['foo']));
430+
$this->assertTrue(isset($c['baz']));
428431
}
429432

430433
public function testForgetArrayOfKeys()

0 commit comments

Comments
 (0)