From 06a0ad08df7d0b083d91eaed85a19b9f5ade43c0 Mon Sep 17 00:00:00 2001 From: Kai Schwarz Date: Mon, 20 Jun 2022 21:45:54 +0200 Subject: [PATCH] fix(hexonet response): fn addColumn patched type declaration issue --- src/HEXONET/Response.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/HEXONET/Response.php b/src/HEXONET/Response.php index 2983345..5807654 100755 --- a/src/HEXONET/Response.php +++ b/src/HEXONET/Response.php @@ -212,9 +212,9 @@ public function isPending(): bool * Add a column to the column list * @param string $key column name * @param string[] $data array of column data - * @return $this + * @return \CNIC\ResponseInterface */ - public function addColumn($key, $data): self + public function addColumn($key, $data): \CNIC\ResponseInterface { $col = new Column($key, $data); $this->columns[] = $col; @@ -225,9 +225,9 @@ public function addColumn($key, $data): self /** * Add a record to the record list * @param array $h row hash data - * @return $this + * @return \CNIC\ResponseInterface */ - public function addRecord($h): self + public function addRecord($h): \CNIC\ResponseInterface { $this->records[] = new Record($h); return $this; @@ -555,9 +555,9 @@ public function hasPreviousPage(): bool /** * Reset index in record list back to zero - * @return $this + * @return \CNIC\ResponseInterface */ - public function rewindRecordList(): self + public function rewindRecordList(): \CNIC\ResponseInterface { $this->recordIndex = 0; return $this;