diff options
| author | Damien Regad <dregad@mantisbt.org> | 2025-10-25 01:12:07 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2025-10-25 01:12:07 +0200 |
| commit | 481bb5292033af2918bea9a9af4b551781d17f5f (patch) | |
| tree | ae01b368c98ec0061b5937884f8ce696de133551 /adodb-error.inc.php | |
| parent | 4cacd51045237191d07f98aa4d85f35647fc92e1 (diff) | |
| download | adodb-481bb5292033af2918bea9a9af4b551781d17f5f.tar.gz adodb-481bb5292033af2918bea9a9af4b551781d17f5f.tar.bz2 adodb-481bb5292033af2918bea9a9af4b551781d17f5f.zip | |
PHP 8.5: fix Non-canonical cast deprecations
Non-canonical cast (integer) is deprecated, use the (int) cast instead
Global search and replace throughout the code base.
Fixes #1143
Diffstat (limited to 'adodb-error.inc.php')
| -rw-r--r-- | adodb-error.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-error.inc.php b/adodb-error.inc.php index 517cf9b0..bc621b51 100644 --- a/adodb-error.inc.php +++ b/adodb-error.inc.php @@ -107,7 +107,7 @@ function adodb_error($provider,$dbType,$errno) function adodb_error_pg($errormsg) { - if (is_numeric($errormsg)) return (integer) $errormsg; + if (is_numeric($errormsg)) return (int) $errormsg; // Postgres has no lock-wait timeout. The best we could do would be to set a statement timeout. static $error_regexps = array( '(Table does not exist\.|Relation [\"\'].*[\"\'] does not exist|sequence does not exist|class ".+" not found)$' => DB_ERROR_NOSUCHTABLE, |
