From d3ad29e8274b94c69f5821548a24f30814998993 Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Fri, 16 Sep 2022 16:05:01 +1000 Subject: [PATCH] allow dynamic properties in Message PHP 8.2 complains about Internal\Message setting dynamic properties: `Creation of dynamic property xxx is deprecated /usr/src/myapp/vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php:153` Since the class uses dynamic properties a bit, enable them explicitly with an attribute. --- php/src/Google/Protobuf/Internal/Message.php | 1 + 1 file changed, 1 insertion(+) diff --git a/php/src/Google/Protobuf/Internal/Message.php b/php/src/Google/Protobuf/Internal/Message.php index 1d1fbf27c560..7af69304decd 100644 --- a/php/src/Google/Protobuf/Internal/Message.php +++ b/php/src/Google/Protobuf/Internal/Message.php @@ -54,6 +54,7 @@ * or extend this class or its child classes by their own. See the comment of * specific functions for more details. */ +#[\AllowDynamicProperties] class Message {