1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00

Add to phpcs ruleset

This commit is contained in:
Oliver Vogel
2025-03-31 15:32:07 +02:00
parent b63b0f26b2
commit 774fd9dfbd
5 changed files with 48 additions and 24 deletions

View File

@@ -97,6 +97,7 @@ final class CollectionTest extends BaseTestCase
public function testGet(): void
{
// phpcs:ignore SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed
$collection = new Collection([
'first',
'second',
@@ -129,6 +130,7 @@ final class CollectionTest extends BaseTestCase
public function testGetAtPosition(): void
{
// phpcs:ignore SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed
$collection = new Collection([1, 2, 'foo' => 'bar']);
$this->assertEquals(1, $collection->getAtPosition(0));
$this->assertEquals(2, $collection->getAtPosition(1));