php8 fixes
authorAlan <alan@roojs.com>
Wed, 12 Jul 2023 07:58:08 +0000 (15:58 +0800)
committerAlan <alan@roojs.com>
Wed, 12 Jul 2023 07:58:08 +0000 (15:58 +0800)
MTrack/CommitChecker.php
MTrack/CommitHookChangeEvent.php
MTrack/SCM/Git/Event.php
MTrack/SCM/Git/Repo.php
MTrack/SCMFileEvent.php
MTrackWeb/Hook/git.php

index e1c2091..fc5f940 100644 (file)
@@ -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) {
index 3319a96..112082e 100644 (file)
@@ -19,5 +19,9 @@ class MTrackCommitHookChangeEvent {
    * repos */
   public $hash;
   
-  public $branch; 
+  public $branch;
+  
+  var $changeby_id;
+  var $fileActions;
+  
 }
index 3cf011b..d724b0d 100644 (file)
@@ -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
      */
index 402e45a..07b0e61 100644 (file)
@@ -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(
index 4fd4410..f066223 100644 (file)
@@ -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
index 8ffbb00..bd52722 100755 (executable)
@@ -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()
     {