From b43300fbcf92008ac1adc87c4b03776a9a4fb4e8 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 21 Jun 2022 18:18:32 -0500 Subject: Use Rector to upgrade constructors. Modern PHP versions do not recognize methods with the same name as the class as being constructors. This commit upgrades the code so that constructors are named `__construct`. The upgrade was done automatically using Rector. --- src/SemanticScuttle/db/oracle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SemanticScuttle/db/oracle.php') diff --git a/src/SemanticScuttle/db/oracle.php b/src/SemanticScuttle/db/oracle.php index 7ef10e5..8b983d3 100644 --- a/src/SemanticScuttle/db/oracle.php +++ b/src/SemanticScuttle/db/oracle.php @@ -34,7 +34,7 @@ class sql_db // // Constructor // - function sql_db($sqlserver, $sqluser, $sqlpassword, $database="", $persistency = true) + function __construct($sqlserver, $sqluser, $sqlpassword, $database="", $persistency = true) { $this->persistency = $persistency; $this->user = $sqluser; @@ -465,4 +465,4 @@ class sql_db } // if ... define -?> \ No newline at end of file +?> -- cgit v1.2.3