Remove '&' on new (#6559)

Remove '&' on static function new.
This commit is contained in:
frytimo
2023-02-21 12:39:15 -04:00
committed by GitHub
parent 593b90230e
commit 8e86fe6243

View File

@@ -3002,11 +3002,11 @@
* {@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;