diff --git a/README.md b/README.md index e0f3508..4793b78 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or **Step 1** — update your `composer.json`: ```composer.json "require": { - "peterson/database": "^4.3.2" + "peterson/database": "^4.3.3" } ``` diff --git a/src/Schema/Builder.php b/src/Schema/Builder.php index ee5d740..5b6fd03 100644 --- a/src/Schema/Builder.php +++ b/src/Schema/Builder.php @@ -1537,12 +1537,12 @@ public function delete($id = null) /** * Destroy/Delete records from the database. * - * @param mixed $id + * @param string|int $id * [default column name is 'id'] * * @return int */ - public function destroy(string $id = null) + public function destroy(string|int $id) { return $this->where('id', $id)->delete(); }