From 7cc31c80b09425072b0831d620cbd3eb92bfebec Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 12 Jul 2023 15:58:08 +0800 Subject: [PATCH] php8 fixes --- MTrack/CommitChecker.php | 4 ++++ MTrack/CommitHookChangeEvent.php | 6 +++++- MTrack/SCM/Git/Event.php | 2 ++ MTrack/SCM/Git/Repo.php | 2 ++ MTrack/SCMFileEvent.php | 1 + MTrackWeb/Hook/git.php | 1 + 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/MTrack/CommitChecker.php b/MTrack/CommitChecker.php index e1c20916..fc5f9404 100644 --- a/MTrack/CommitChecker.php +++ b/MTrack/CommitChecker.php @@ -32,6 +32,10 @@ class MTrack_CommitChecker { var $authUser; var $checks = array(); + var $no_ticket; + var $deferred; + var $spent_by_tid_by_user; + function __construct($ar) { foreach($ar as $k=>$v) { diff --git a/MTrack/CommitHookChangeEvent.php b/MTrack/CommitHookChangeEvent.php index 3319a965..112082ef 100644 --- a/MTrack/CommitHookChangeEvent.php +++ b/MTrack/CommitHookChangeEvent.php @@ -19,5 +19,9 @@ class MTrackCommitHookChangeEvent { * repos */ public $hash; - public $branch; + public $branch; + + var $changeby_id; + var $fileActions; + } diff --git a/MTrack/SCM/Git/Event.php b/MTrack/SCM/Git/Event.php index 3cf011bc..d724b0d1 100644 --- a/MTrack/SCM/Git/Event.php +++ b/MTrack/SCM/Git/Event.php @@ -24,6 +24,8 @@ class MTrack_SCM_Git_Event extends MTrackSCMEvent public $files; public $commit; + var $tags; + var $files_array; /** * this is based on the output from git --raw --numstat */ diff --git a/MTrack/SCM/Git/Repo.php b/MTrack/SCM/Git/Repo.php index 402e45ad..07b0e617 100644 --- a/MTrack/SCM/Git/Repo.php +++ b/MTrack/SCM/Git/Repo.php @@ -9,6 +9,8 @@ class MTrack_SCM_Git_Repo extends MTrack_Repo public $gitdir = null; public $debug = false; + + var $project_id; public function getSCMMetaData() { return array( diff --git a/MTrack/SCMFileEvent.php b/MTrack/SCMFileEvent.php index 4fd44104..f0662235 100644 --- a/MTrack/SCMFileEvent.php +++ b/MTrack/SCMFileEvent.php @@ -13,6 +13,7 @@ class MTrackSCMFileEvent public $oldver; public $added; public $removed; + var $newver; /** when used in a string context, just return the filename. * This simplifies explicit object vs. string interpretation diff --git a/MTrackWeb/Hook/git.php b/MTrackWeb/Hook/git.php index 8ffbb005..bd527226 100755 --- a/MTrackWeb/Hook/git.php +++ b/MTrackWeb/Hook/git.php @@ -39,6 +39,7 @@ class MTrackWeb_Hook_git extends MTrackWeb { static $cli_desc = "Commit hook for git - see source for usage"; + var $authUser; function getAuth() { -- 2.39.2