aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/db/db2.php
diff options
context:
space:
mode:
authorJason <jasonmm.github@gmail.com>2022-06-21 18:18:32 -0500
committerJason <jasonmm.github@gmail.com>2022-06-21 18:18:37 -0500
commitb43300fbcf92008ac1adc87c4b03776a9a4fb4e8 (patch)
tree21978beea7c1c044bb24bdc11f1cdc12393e2f3a /src/SemanticScuttle/db/db2.php
parent856e975127fff8f82b14f2886bb4ffb239541555 (diff)
downloadsemanticscuttle-b43300fbcf92008ac1adc87c4b03776a9a4fb4e8.tar.gz
semanticscuttle-b43300fbcf92008ac1adc87c4b03776a9a4fb4e8.tar.bz2
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.
Diffstat (limited to 'src/SemanticScuttle/db/db2.php')
-rw-r--r--src/SemanticScuttle/db/db2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SemanticScuttle/db/db2.php b/src/SemanticScuttle/db/db2.php
index b1abf1a..117ecae 100644
--- a/src/SemanticScuttle/db/db2.php
+++ b/src/SemanticScuttle/db/db2.php
@@ -36,7 +36,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;
@@ -414,4 +414,4 @@ class sql_db
} // if ... define
-?> \ No newline at end of file
+?>