This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 3abf7ecbd THRIFT-5723 Php8.1 fix warnings
3abf7ecbd is described below

commit 3abf7ecbda08629673828895a99cfa07920a0a5b
Author: vladimir.panivko <[email protected]>
AuthorDate: Thu Jul 6 08:55:46 2023 +0200

    THRIFT-5723
    Php8.1 fix warnings
---
 lib/php/lib/Exception/TException.php | 2 +-
 lib/php/src/Thrift.php               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/php/lib/Exception/TException.php 
b/lib/php/lib/Exception/TException.php
index 7dbf83293..228d761e9 100644
--- a/lib/php/lib/Exception/TException.php
+++ b/lib/php/lib/Exception/TException.php
@@ -52,7 +52,7 @@ class TException extends \Exception
                 }
             }
         } else {
-            parent::__construct($p1, $p2);
+            parent::__construct((string)$p1, $p2);
         }
     }
 
diff --git a/lib/php/src/Thrift.php b/lib/php/src/Thrift.php
index 4fe439271..0364c9081 100644
--- a/lib/php/src/Thrift.php
+++ b/lib/php/src/Thrift.php
@@ -82,7 +82,7 @@ class TException extends Exception
         }
       }
     } else {
-      parent::__construct($p1, $p2);
+      parent::__construct((string)$p1, $p2);
     }
   }
 

Reply via email to