Skip to content

Commit 82f287a

Browse files
committed
removed deprecated stuff
1 parent 155e27d commit 82f287a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/Database/ResultSet.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,10 @@ public function fetch(): ?Row
245245
/**
246246
* Fetches single field.
247247
*/
248-
public function fetchField(int $column = 0): mixed
248+
public function fetchField(): mixed
249249
{
250-
if (func_num_args()) {
251-
trigger_error(__METHOD__ . '() argument is deprecated.', E_USER_DEPRECATED);
252-
}
253250
$row = $this->fetch();
254-
return $row ? $row[$column] : null;
251+
return $row ? $row[0] : null;
255252
}
256253

257254

0 commit comments

Comments
 (0)