Specify types for iterable

This commit is contained in:
Andrea Marco Sartori 2023-03-22 23:40:39 +10:00
parent 90b2f59f5a
commit ac41f05904
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ final class JsonParser implements IteratorAggregate
/**
* Eager load the JSON into an array
*
* @return array
* @return array<string|int, mixed>
*/
public function toArray(): array
{

View File

@ -130,7 +130,7 @@ final class Parser implements IteratorAggregate
/**
* Eager load the current compound into an array
*
* @return array
* @return array<string|int, mixed>
*/
public function toArray(): array
{