mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Updates for PHP 8.4 support per processwire/processwire-issues#2000 Also note that these changes require we adjust our minimum required PHP version from 7.0 up to 7.1, with PHP 8.x still recommended.
This commit is contained in:
@@ -80,7 +80,7 @@ class Database extends \mysqli implements WireDatabase {
|
||||
|
||||
if($config) {
|
||||
if($config->dbCharset) $this->set_charset($config->dbCharset);
|
||||
else if($config->dbSetNamesUTF8) $this->query("SET NAMES 'utf8'");
|
||||
else if($config->get('dbSetNamesUTF8')) $this->query("SET NAMES 'utf8'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,12 +134,12 @@ class Database extends \mysqli implements WireDatabase {
|
||||
*
|
||||
* Active in ProcessWire debug mode only
|
||||
*
|
||||
* @param ProcessWire $wire ProcessWire instance, if omitted returns queries for all instances
|
||||
* @param ProcessWire|null $wire ProcessWire instance, if omitted returns queries for all instances
|
||||
* @return array
|
||||
* @deprecated
|
||||
*
|
||||
*/
|
||||
static public function getQueryLog(ProcessWire $wire = null) {
|
||||
static public function getQueryLog(?ProcessWire $wire = null) {
|
||||
if($wire) {
|
||||
return $wire->database->queryLog();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user