Fix login redirect and hide PHP errors on pages

This commit is contained in:
Thanakorn
2026-09-14 12:46:13 +07:00
parent 3045c4a8ef
commit c3113bc70d
3 changed files with 29 additions and 0 deletions
+5
View File
@@ -27,6 +27,11 @@ class db_statement extends PDOStatement {
$this->pdo = $pdo;
}
// PDOStatement::execute() is declared ?array $params = null : bool. This
// override deliberately accepts a looser signature so callers may pass
// positional arguments (see func_get_args() below), so the tightened return
// type is opted out of rather than the call sites being changed.
#[\ReturnTypeWillChange]
public function execute($args = null) {
// Perform logging here. PDO object is accessible
// from $this->pdo.