diff --git a/CHANGELOG.md b/CHANGELOG.md index 1db6aea..76043d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,18 +2,21 @@ All notable changes to this project will be documented in this file. This project adhere to the [Semantic Versioning](http://semver.org/) standard. -## [unreleased] Unreleased +## [1.0.2] Unreleased + +- Fix - Adjust `DB::insert()`, `DB::delete()`, `DB::update()`, and `DB::replace()` signature to match `wpdb`'s supported method signatures. +- Fix - Adjust `DB::get_var()`, `DB::get_col()`, and `DB::get_results()` signature of first arg to match `wpdb`'s signature. ## [1.0.1] 2022-09-29 -- Added a `Config` class to handle overrides of the `DatabaseQueryException` and addition of a hook prefix. -- Added tests for `Config` -- More documentation +* Tweak - Added a `Config` class to handle overrides of the `DatabaseQueryException` and addition of a hook prefix. +* Tweak - Added tests for `Config` +* Docs - More documentation ## [1.0.0] 2022-08-17 -- Initial version -- Documentation -- Automated tests +* Feature - Initial version +* Docs - Documentation +* Tweak - Automated tests [1.0.0]: https://github.com/stellarwp/schema/releases/tag/1.0.0 diff --git a/src/DB/DB.php b/src/DB/DB.php index d48113c..1e6cde1 100644 --- a/src/DB/DB.php +++ b/src/DB/DB.php @@ -15,14 +15,14 @@ * If a SQL error occurs a DatabaseQueryException is thrown. * * @method static int|bool query(string $query) - * @method static int|false insert(string $table, array $data, array|string $format) - * @method static int|false delete(string $table, array $where, array|string|null $where_format) - * @method static int|false update(string $table, array $data, array $where, array|string $format, array|string|null $where_format) - * @method static int|false replace(string $table, array $data, array|string $format) - * @method static null|string get_var(string $query = null, int $x = 0, int $y = 0) - * @method static array|object|null|void get_row(string $query = null, string $output = OBJECT, int $y = 0) - * @method static array get_col(string $query = null, int $x = 0) - * @method static array|object|null get_results(string $query = null, string $output = OBJECT) + * @method static int|false insert(string $table, array $data, array|string|null $format = null) + * @method static int|false delete(string $table, array $where, array|string|null $where_format = null) + * @method static int|false update(string $table, array $data, array $where, array|string|null $format = null, array|string|null $where_format = null) + * @method static int|false replace(string $table, array $data, array|string|null $format = null) + * @method static null|string get_var(string|null $query = null, int $x = 0, int $y = 0) + * @method static array|object|null|void get_row(string|null $query = null, string $output = OBJECT, int $y = 0) + * @method static array get_col(string|null $query = null, int $x = 0) + * @method static array|object|null get_results(string|null $query = null, string $output = OBJECT) * @method static string get_charset_collate() * @method static string esc_like(string $text) * @method static string remove_placeholder_escape(string $text)