Skip to content

Commit 5d72327

Browse files
committed
Fix code style issues
1 parent a3ec1b5 commit 5d72327

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Data.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use RuntimeException;
1515
use ArrayAccess;
1616

17+
/**
18+
* @implements ArrayAccess<string, mixed>
19+
*/
1720
class Data implements DataInterface, ArrayAccess
1821
{
1922
/**
@@ -247,6 +250,8 @@ public function offsetGet($key)
247250

248251
/**
249252
* {@inheritdoc}
253+
*
254+
* @param string $key
250255
*/
251256
public function offsetSet($key, $value)
252257
{
@@ -260,5 +265,4 @@ public function offsetUnset($key)
260265
{
261266
$this->remove($key);
262267
}
263-
264268
}

tests/DataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function testOffsetGet()
248248

249249
public function testOffsetSet()
250250
{
251-
$data = new Data;
251+
$data = new Data();
252252

253253
$this->assertNull($data['a']);
254254
$this->assertNull($data['b.c']);

0 commit comments

Comments
 (0)