diff options
author | Jason <jasonmm.github@gmail.com> | 2022-06-21 18:18:32 -0500 |
---|---|---|
committer | Jason <jasonmm.github@gmail.com> | 2022-06-21 18:18:37 -0500 |
commit | b43300fbcf92008ac1adc87c4b03776a9a4fb4e8 (patch) | |
tree | 21978beea7c1c044bb24bdc11f1cdc12393e2f3a /src/SemanticScuttle/db/oracle.php | |
parent | 856e975127fff8f82b14f2886bb4ffb239541555 (diff) | |
download | semanticscuttle-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/oracle.php')
-rw-r--r-- | src/SemanticScuttle/db/oracle.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 +?> |