Skip to content

Commit eae28fd

Browse files
committed
removed deprecated stuff
1 parent 740de71 commit eae28fd

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
@@ -219,13 +219,10 @@ public function fetch(): ?Row
219219
/**
220220
* Fetches single field.
221221
*/
222-
public function fetchField(int $column = 0): mixed
222+
public function fetchField(): mixed
223223
{
224-
if (func_num_args()) {
225-
trigger_error(__METHOD__ . '() argument is deprecated.', E_USER_DEPRECATED);
226-
}
227224
$row = $this->fetch();
228-
return $row ? $row[$column] : null;
225+
return $row ? $row[0] : null;
229226
}
230227

231228

0 commit comments

Comments
 (0)