[THRIFT-5758] PHP 8.2 Deprecate dynamic properties
diff --git a/lib/php/src/Thrift.php b/lib/php/src/Thrift.php
index 0364c90..1dbf64b 100644
--- a/lib/php/src/Thrift.php
+++ b/lib/php/src/Thrift.php
@@ -68,6 +68,7 @@
* @param mixed $p1 Message (string) or type-spec (array)
* @param mixed $p2 Code (integer) or values (array)
*/
+#[\AllowDynamicProperties]
class TException extends Exception
{
public function __construct($p1=null, $p2=0)
@@ -419,6 +420,7 @@
* of PHP. Note that code is intentionally duplicated in here to avoid making
* function calls for every field or member of a container..
*/
+#[\AllowDynamicProperties]
abstract class TBase
{
static $tmethod = array(TType::BOOL => 'Bool',