Skip to content

Commit e48e9f1

Browse files
Federico Livawilsonge
authored andcommitted
Improved PHPDoc for JDatabaseDriver::updateObject (#25134)
The $key parameter can be either an array or a string but from PHPDoc it was only an array
1 parent eb3c321 commit e48e9f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/joomla/database/driver.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,10 +2203,10 @@ public function truncateTable($table)
22032203
/**
22042204
* Updates a row in a table based on an object's properties.
22052205
*
2206-
* @param string $table The name of the database table to update.
2207-
* @param object &$object A reference to an object whose public properties match the table fields.
2208-
* @param array $key The name of the primary key.
2209-
* @param boolean $nulls True to update null fields or false to ignore them.
2206+
* @param string $table The name of the database table to update.
2207+
* @param object &$object A reference to an object whose public properties match the table fields.
2208+
* @param array|string $key The name of the primary key.
2209+
* @param boolean $nulls True to update null fields or false to ignore them.
22102210
*
22112211
* @return boolean True on success.
22122212
*

0 commit comments

Comments
 (0)