Add one more index to the theme_datacolor

This commit is contained in:
MDW 2024-03-17 19:19:29 +01:00
parent a848a06b76
commit aa5aa2bf26
No known key found for this signature in database
4 changed files with 6 additions and 4 deletions

View File

@ -171,7 +171,7 @@ $VALID_MODULE_MAPPING = array(
'syslog' => 'Syslog',
'takepos' => 'TakePos',
'tax' => 'Tax',
'theme_datacolor' => 'array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int}}',
'theme_datacolor' => 'array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int},3:array{0:int,1:int,2:int}}',
'ticket' => 'Ticket',
'user' => 'User',
'variants' => 'Variants',

View File

@ -170,7 +170,7 @@ $VALID_MODULE_MAPPING = array(
'syslog' => 'Syslog',
'takepos' => 'TakePos',
'tax' => 'Tax',
'theme_datacolor' => 'array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int}}',
'theme_datacolor' => 'array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int},3:array{0:int,1:int,2:int}}',
'ticket' => 'Ticket',
'user' => 'User',
'variants' => 'Variants',

View File

@ -308,7 +308,7 @@ class ActionComm extends CommonObject
public $icalname;
/**
* @var string Ical color
* @var int<0,3> Ical color
*/
public $icalcolor;

View File

@ -1804,7 +1804,9 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
global $cachethirdparties, $cachecontacts, $cacheusers, $colorindexused;
global $hookmanager;
'@phan-var-force array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int}} $theme_datacolor';
'@phan-var-force array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int},3:array{0:int,1:int,2:int}} $theme_datacolor
@phan-var-force User[] $cacheusers
@phan-var-force array<int<0,3>> $colorindexused';
if ($conf->use_javascript_ajax) { // Enable the "Show more button..."
$conf->global->MAIN_JS_SWITCH_AGENDA = 1;