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/mssql-odbc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/SemanticScuttle/db/mssql-odbc.php') diff --git a/src/SemanticScuttle/db/mssql-odbc.php b/src/SemanticScuttle/db/mssql-odbc.php index a2d3d02..f8b7db3 100644 --- a/src/SemanticScuttle/db/mssql-odbc.php +++ b/src/SemanticScuttle/db/mssql-odbc.php @@ -184,7 +184,7 @@ class sql_db function _odbc_execute_query($query) { $result = false; - + if (eregi("^SELECT ", $query)) { $result = @odbc_exec($this->db_connect_id, $query); @@ -459,7 +459,7 @@ class sql_db { $this->sql_transaction('rollback'); } - + trigger_error($message, E_USER_ERROR); } @@ -573,4 +573,4 @@ class sql_db } // if ... define -?> \ No newline at end of file +?> -- cgit v1.2.3