mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 02:28:23 +01:00
Qual: Enable detection of deprecated modulename & GETPOST(...,'int') (#28457)
* Qual: Enable detection of deprecated modulename & GETPOST(...,'int') # Qual: Enable detection of deprecated modulename & GETPOST(...,'int') Enable phan rules to verify deprecated modulename usage and GETPOST(...,'int') usage in the code. * Qual: Try type hint on to help avoid notification * Qual: Accept 3 parameters for GETPOST to GETPOSTINT conversion * Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE) # Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE) Following the update to the fixer to also convert GETPOST... with 3 parameters. The files are now converted.
This commit is contained in:
@@ -999,6 +999,7 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
|
||||
*/
|
||||
function GETPOSTINT($paramname, $method = 0)
|
||||
{
|
||||
// @phan-suppress-next-line GetPostShouldBeGetPostInt
|
||||
return (int) GETPOST($paramname, 'int', $method, null, null, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user