(Csv/Json)ResultSet::current(): Add phpDoc

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 16:30:30 +02:00
parent 106e7abc65
commit 2a26f28106
2 changed files with 8 additions and 2 deletions

View file

@ -14,7 +14,10 @@ class CsvResultSet extends ResultSet
{
protected $isCacheDisabled = true;
public function current()
/**
* @return array<string, ?string>
*/
public function current(): array
{
return $this->extractKeysAndValues(parent::current());
}

View file

@ -15,7 +15,10 @@ class JsonResultSet extends ResultSet
{
protected $isCacheDisabled = true;
public function current()
/**
* @return array<string, ?string>
*/
public function current(): array
{
return $this->createObject(parent::current());
}