fix phpstan
This commit is contained in:
parent
69681e6450
commit
c1b213b39f
2 changed files with 3 additions and 9 deletions
|
|
@ -28506,12 +28506,6 @@ parameters:
|
|||
count: 1
|
||||
path: ../../htdocs/public/clicktodial/cidlookup.php
|
||||
|
||||
-
|
||||
message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#'
|
||||
identifier: function.alreadyNarrowedType
|
||||
count: 1
|
||||
path: ../../htdocs/public/company/new.php
|
||||
|
||||
-
|
||||
message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#'
|
||||
identifier: function.alreadyNarrowedType
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ if (!defined('NOBROWSERNOTIF')) {
|
|||
// Do not use GETPOST here, function is not defined and define must be done before including main.inc.php
|
||||
// Because 2 entities can have the same ref
|
||||
$entity = (!empty($_GET['entity']) ? (int) $_GET['entity'] : (!empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
|
||||
if (is_numeric($entity)) {
|
||||
define("DOLENTITY", $entity);
|
||||
}
|
||||
// if (is_numeric($entity)) { // value is casted to int so always numeric
|
||||
define("DOLENTITY", $entity);
|
||||
// }
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
|
|
|
|||
Loading…
Reference in a new issue