Skip to content

Commit 2bf5823

Browse files
committed
test():Do some refactoring in ArrayContainsBaseTest
1 parent b282a5d commit 2bf5823

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Constraint/ArrayContainsBaseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function isAssocArray($array): bool
2020
return parent::_isAssocArray($array);
2121
}
2222

23-
public function toArray($value)
23+
public function toArray($value): array
2424
{
2525
return parent::_toArray($value);
2626
}
@@ -35,7 +35,7 @@ public function toString(): string
3535

3636
class TestArrayAccess implements ArrayAccess
3737
{
38-
protected $array;
38+
protected array $array;
3939

4040
public function __construct(
4141
$array = []
@@ -204,7 +204,7 @@ public function test_toArray_should_throw_exception_4_non_array_like_type()
204204
$value = "1,2,3";
205205
$this->expectException(AssertionFailedError::class);
206206
$this->expectExceptionMessage('Not supported type');
207-
$result = $instance->toArray($value);
207+
$instance->toArray($value);
208208

209209
}
210210
}

0 commit comments

Comments
 (0)