We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155e27d commit 82f287aCopy full SHA for 82f287a
1 file changed
src/Database/ResultSet.php
@@ -245,13 +245,10 @@ public function fetch(): ?Row
245
/**
246
* Fetches single field.
247
*/
248
- public function fetchField(int $column = 0): mixed
+ public function fetchField(): mixed
249
{
250
- if (func_num_args()) {
251
- trigger_error(__METHOD__ . '() argument is deprecated.', E_USER_DEPRECATED);
252
- }
253
$row = $this->fetch();
254
- return $row ? $row[$column] : null;
+ return $row ? $row[0] : null;
255
}
256
257
0 commit comments