* [misc] compatibility with PHP8.4.

This commit is contained in:
zhujinyong
2025-07-08 08:35:58 +08:00
parent 94c876426f
commit 93989b45bc
60 changed files with 173 additions and 173 deletions
+2 -2
View File
@@ -507,7 +507,7 @@ class programplanModel extends model
* @access public
* @return bool
*/
public function update(int $planID = 0, int $projectID = 0, object|null $plan = null): bool
public function update(int $planID = 0, int $projectID = 0, ?object $plan = null): bool
{
if(empty($plan)) return false;
@@ -882,7 +882,7 @@ class programplanModel extends model
* @access public
* @return array
*/
public function getGanttTasks(int $projectID, array $planIdList, string $browseType, int $queryID, object $pager = null)
public function getGanttTasks(int $projectID, array $planIdList, string $browseType, int $queryID, ?object $pager = null)
{
$tasks = array();
if($browseType == 'bysearch')