Skip to content

Commit

Permalink
Remove '&' on new (#6559)
Browse files Browse the repository at this point in the history
Remove '&' on static function new.
  • Loading branch information
frytimo committed Feb 21, 2023
1 parent 593b902 commit 8e86fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/classes/database.php
Expand Up @@ -3002,11 +3002,11 @@ public static function sanitize(string $value) {
* {@link database::connect()}</p>
* <p><b>Usage:</b><br>
* <code>&nbsp; $database_object = database::new();</code></p>
* @return database reference to a new instance of database object
* @return database new instance of database object already connected
* @see database::__construct()
* @see database::connect()
*/
public static function &new() {
public static function new() {
$db = new database();
$db->connect();
return $db;
Expand Down

0 comments on commit 8e86fe6

Please sign in to comment.