Skip to content

Commit 845dd7c

Browse files
committed
Add PHP 8 support
1 parent e316995 commit 845dd7c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php",
4848
"cs:fix": "php-cs-fixer fix --config=.cs.php",
4949
"lint": "phplint ./ --exclude=vendor --no-interaction --no-cache",
50-
"phpstan": "phpstan analyse src tests --level=max -c phpstan.neon --no-progress --ansi",
50+
"phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress --ansi",
5151
"sniffer:check": "phpcs --standard=phpcs.xml",
5252
"sniffer:fix": "phpcbf --standard=phpcs.xml",
5353
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always",

tests/ArrayReaderTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ArrayReaderTest extends TestCase
2626
public function testCreateFromArray($data, $key, $default, $expected): void
2727
{
2828
$reader = ArrayReader::createFromArray($data);
29-
static::assertSame($expected, $reader->getInt($key, $default));
29+
$this->assertSame($expected, $reader->getInt($key, $default));
3030
}
3131

3232
/**
@@ -44,7 +44,7 @@ public function testCreateFromArray($data, $key, $default, $expected): void
4444
public function testGetInt($data, $key, $default, $expected): void
4545
{
4646
$reader = new ArrayReader($data);
47-
static::assertSame($expected, $reader->getInt($key, $default));
47+
$this->assertSame($expected, $reader->getInt($key, $default));
4848
}
4949

5050
/**
@@ -82,7 +82,7 @@ public function testGetIntError($data, $key, $default): void
8282
public function testFindInt($data, $key, $default, $expected): void
8383
{
8484
$reader = new ArrayReader($data);
85-
static::assertSame($expected, $reader->findInt($key, $default));
85+
$this->assertSame($expected, $reader->findInt($key, $default));
8686
}
8787

8888
/**
@@ -147,8 +147,8 @@ public function providerFindInt(): array
147147
public function testGetString($data, string $key, $default, $expected): void
148148
{
149149
$reader = new ArrayReader($data);
150-
static::assertSame($expected, $reader->findString($key, $default));
151-
static::assertSame($expected, $reader->getString($key, $default));
150+
$this->assertSame($expected, $reader->findString($key, $default));
151+
$this->assertSame($expected, $reader->getString($key, $default));
152152
}
153153

154154
/**
@@ -184,7 +184,7 @@ public function testGetStringError($data, string $key): void
184184
$reader = new ArrayReader($data);
185185
$reader->getString($key);
186186

187-
static::assertTrue(true);
187+
$this->assertTrue(true);
188188
}
189189

190190
/**
@@ -217,7 +217,7 @@ public function providerGetStringError(): array
217217
public function testFindString($data, string $key, $default, $expected): void
218218
{
219219
$reader = new ArrayReader($data);
220-
static::assertSame($expected, $reader->findString($key, $default));
220+
$this->assertSame($expected, $reader->findString($key, $default));
221221
}
222222

223223
/**
@@ -252,7 +252,7 @@ public function providerFindString(): array
252252
public function testGetArray($data, $key, $default, $expected): void
253253
{
254254
$reader = new ArrayReader($data);
255-
static::assertSame($expected, $reader->getArray($key, $default));
255+
$this->assertSame($expected, $reader->getArray($key, $default));
256256
}
257257

258258
/**
@@ -318,7 +318,7 @@ public function providerGetArrayError(): array
318318
public function testFindArray($data, $key, $default, $expected): void
319319
{
320320
$reader = new ArrayReader($data);
321-
static::assertSame($expected, $reader->findArray($key, $default));
321+
$this->assertSame($expected, $reader->findArray($key, $default));
322322
}
323323

324324
/**

0 commit comments

Comments
 (0)