fix phpstan

This commit is contained in:
Frédéric France 2024-12-12 21:06:51 +01:00
parent 923e85f0a8
commit f5f4e500bd
No known key found for this signature in database
GPG key ID: CE25B0B7B53B9177
3 changed files with 4 additions and 19 deletions

View file

@ -8196,12 +8196,6 @@ parameters:
count: 1
path: ../../htdocs/core/actions_massactions.inc.php
-
message: '#^Variable \$action might not be defined\.$#'
identifier: variable.undefined
count: 14
path: ../../htdocs/core/actions_massactions.inc.php
-
message: '#^Variable \$from might not be defined\.$#'
identifier: variable.undefined
@ -8220,12 +8214,6 @@ parameters:
count: 1
path: ../../htdocs/core/actions_massactions.inc.php
-
message: '#^Variable \$month might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/core/actions_massactions.inc.php
-
message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#'
identifier: empty.variable
@ -8256,12 +8244,6 @@ parameters:
count: 1
path: ../../htdocs/core/actions_massactions.inc.php
-
message: '#^Variable \$year might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/core/actions_massactions.inc.php
-
message: '#^Variable \$classfile might not be defined\.$#'
identifier: variable.undefined

View file

@ -55,10 +55,13 @@
* @var ?string $objectlabel
* @var ?string $option
* @var ?int $deliveryreceipt
* @var string $action
* @var string $massaction
* @var string $objectclass
* @var string $uploaddir
* @var string $confirm
* @var string $month
* @var string $year
* @var int $error
*/
'

View file

@ -1231,7 +1231,7 @@ class Cronjob extends CommonObject
@set_time_limit($ExecTimeLimit); // Need more than 240 on Windows 7/64
error_reporting($err);
}
$MemoryLimit = getDolGlobalString('MAIN_CRON_EXEC_TIME_LIMIT');
$MemoryLimit = getDolGlobalString('MAIN_CRON_MEMORY_LIMIT');
if (!empty($MemoryLimit)) {
@ini_set('memory_limit', $MemoryLimit);
}