Skip to content

Commit

Permalink
Merge pull request #4 from pprkut/generic-builder-type
Browse files Browse the repository at this point in the history
MySQL/MariaDB: Revert back to generic return type for get_new_dml_que…
  • Loading branch information
SMillerDev authored Nov 7, 2024
2 parents 10869c6 + cbf77da commit 18815d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Lunr/Gravity/MariaDB/MariaDBConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public function __destruct()
*
* @param bool $simple Whether to return a simple query builder or an advanced one.
*
* @return ($simple is true ? MariaDBSimpleDMLQueryBuilder : MariaDBDMLQueryBuilder) New DatabaseDMLQueryBuilder object instance
* @return object New DatabaseDMLQueryBuilder object instance
*/
public function get_new_dml_query_builder_object(bool $simple = TRUE): MariaDBDMLQueryBuilder|MariaDBSimpleDMLQueryBuilder
public function get_new_dml_query_builder_object(bool $simple = TRUE): object
{
$querybuilder = new MariaDBDMLQueryBuilder();
if ($simple === TRUE)
Expand Down
4 changes: 2 additions & 2 deletions src/Lunr/Gravity/MySQL/MySQLConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,9 @@ public function set_option(int $key, mixed $value): bool
*
* @param bool $simple Whether to return a simple query builder or an advanced one.
*
* @return ($simple is true ? MySQLSimpleDMLQueryBuilder : MySQLDMLQueryBuilder) New DatabaseDMLQueryBuilder object instance
* @return object New DatabaseDMLQueryBuilder object instance
*/
public function get_new_dml_query_builder_object(bool $simple = TRUE): MySQLSimpleDMLQueryBuilder|MySQLDMLQueryBuilder
public function get_new_dml_query_builder_object(bool $simple = TRUE): object
{
$querybuilder = new MySQLDMLQueryBuilder();
if ($simple === TRUE)
Expand Down

0 comments on commit 18815d6

Please sign in to comment.