File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
3636class 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}
You can’t perform that action at this time.
0 commit comments