diff --git a/libraries/src/MVC/Controller/ApiController.php b/libraries/src/MVC/Controller/ApiController.php index 5311891a1986d..a53961f32ed21 100644 --- a/libraries/src/MVC/Controller/ApiController.php +++ b/libraries/src/MVC/Controller/ApiController.php @@ -401,9 +401,14 @@ public function edit() /** * Method to save a record. * - * @param integer $recordKey The primary key of the item (if exists) + * @param integer|null $recordKey The primary key of the item (if exists) * - * @return integer The record ID on success, false on failure + * @return integer|boolean The record ID on success, false on failure + * + * @throws InvalidParameterException + * @throws \RuntimeException + * @throws \Exception + * @throws \Joomla\CMS\MVC\Controller\Exception\CheckinCheckout * * @since 4.0.0 */