diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 582c9d78bc0..f097ffcc574 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -1463,7 +1463,7 @@ if ($action == 'updatecss' && $usercanedit) { $object->virtualhost = $tmpvirtualhost; $object->lang = GETPOST('WEBSITE_LANG', 'aZ09'); $object->otherlang = join(',', $arrayotherlang); - $object->use_manifest = GETPOST('use_manifest', 'alpha'); + $object->use_manifest = GETPOSTINT('use_manifest'); $result = $object->update($user); if ($result < 0) { diff --git a/htdocs/zapier/lib/zapier.lib.php b/htdocs/zapier/lib/zapier.lib.php index 5b6a3bd335a..6d13fcb5d12 100644 --- a/htdocs/zapier/lib/zapier.lib.php +++ b/htdocs/zapier/lib/zapier.lib.php @@ -24,14 +24,12 @@ /** * Prepare admin pages header * - * @return array + * @return array Array with list of tab entries */ function zapierAdminPrepareHead() { global $langs, $conf; - $langs->load("zapier"); - $h = 0; $head = array(); diff --git a/phpstan.neon b/phpstan.neon index b0563e135f0..43c8d183543 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -50,12 +50,19 @@ parameters: - '#Undefined variable: \$form#' - '#Result of function fieldList#' - '#Caught class Stripe#' + - '#Function llxHeader invoked with#' - '#Function llxHeaderVierge invoked with#' - '#If condition is always true#' - '#always exists and is not falsy#' - '#has no return type specified#' - - '#expression is always#' + - '#is always true#' + - '#is always fal#' - '#always exists and is not nullable#' + - '#PHPDoc tag @return has invalid value#' + - '#type has no value type specified in iterable type array#' + - '#with no value type specified in iterable type array#' + - '#Empty array passed to foreach#' + - '#in isset\(\) is not nullable#' internalErrorsCountLimit: 50 cache: nodesByFileCountMax: 512