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 d2e9b39 commit 7ebb32aCopy full SHA for 7ebb32a
1 file changed
src/Database/ResultSet.php
@@ -219,13 +219,10 @@ public function fetch(): ?Row
219
/**
220
* Fetches single field.
221
*/
222
- public function fetchField(int $column = 0): mixed
+ public function fetchField(): mixed
223
{
224
- if (func_num_args()) {
225
- trigger_error(__METHOD__ . '() argument is deprecated.', E_USER_DEPRECATED);
226
- }
227
$row = $this->fetch();
228
- return $row ? $row[$column] : null;
+ return $row ? $row[0] : null;
229
}
230
231
0 commit comments