Skip to content

Commit 201af96

Browse files
committed
TransactionAbstract: fix empty properties
1 parent 3164fc9 commit 201af96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Response/Read/TransactionAbstract.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ public function rewind()
9797
#[\ReturnTypeWillChange]
9898
public function valid()
9999
{
100-
return array_key_exists($this->key(), $this->properties);
100+
$key = key($this->properties);
101+
if ($key === null) {
102+
return false;
103+
}
104+
105+
return array_key_exists($key, $this->properties);
101106
}
102107

103108

0 commit comments

Comments
 (0)