Enhance phpstan

This commit is contained in:
Laurent Destailleur 2019-07-20 16:08:31 +02:00
parent f368ef377b
commit b6a1c92fc0
2 changed files with 31 additions and 33 deletions

View File

@ -806,7 +806,6 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print '<input type="hidden" name="action" value="synccustomertostripe">'; print '<input type="hidden" name="action" value="synccustomertostripe">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="socid" value="'.$object->id.'">'; print '<input type="hidden" name="socid" value="'.$object->id.'">';
print '<input type="hidden" name="companybankid" value="'.$rib->id.'">';
print '<input type="submit" class="button" name="syncstripecustomer" value="'.$langs->trans("CreateCustomerOnStripe").'">'; print '<input type="submit" class="button" name="syncstripecustomer" value="'.$langs->trans("CreateCustomerOnStripe").'">';
print '</form>'; print '</form>';
} }

View File

@ -139,9 +139,6 @@ parameters:
reportMagicMethods: false reportMagicMethods: false
reportMagicProperties: false reportMagicProperties: false
ignoreErrors: ignoreErrors:
-
message: '#Call to an undefined method abcdef#'
path: %currentWorkingDirectory%/dirtoignoreerror/*
- '#Undefined variable: \$langs#' - '#Undefined variable: \$langs#'
- '#Undefined variable: \$user#' - '#Undefined variable: \$user#'
- '#Undefined variable: \$db#' - '#Undefined variable: \$db#'
@ -150,6 +147,8 @@ parameters:
- '#Undefined variable: \$mysoc#' - '#Undefined variable: \$mysoc#'
- '#Undefined variable: \$error#' - '#Undefined variable: \$error#'
- '#Undefined variable: \$errors#' - '#Undefined variable: \$errors#'
- message: '#Undefined variable: \$object#'
path: %currentWorkingDirectory%/htdocs/societe/tpl
internalErrorsCountLimit: 50 internalErrorsCountLimit: 50
cache: cache:
nodesByFileCountMax: 512 nodesByFileCountMax: 512