@@ -100,6 +100,7 @@ private static function serializeXmlModel(\XMLWriter $writer, string $name, Mode
100100
101101 // children element
102102 foreach ($ ro ->getProperties () as $ property ) {
103+ $ property ->setAccessible (true );
103104 $ val = $ property ->getValue ($ value );
104105 if (!isset ($ val )) {
105106 continue ;
@@ -129,6 +130,7 @@ public static function serializeInput(RequestModel $request, OperationInput $inp
129130
130131 //headers
131132 $ hp = $ ro ->getProperty ('headers ' );
133+ $ hp ->setAccessible (true );
132134 $ h = $ hp ->getValue ($ request );
133135 if (is_array ($ h )) {
134136 foreach ($ h as $ key => $ value ) {
@@ -138,6 +140,7 @@ public static function serializeInput(RequestModel $request, OperationInput $inp
138140
139141 //parameters
140142 $ pp = $ ro ->getProperty ('parameters ' );
143+ $ pp ->setAccessible (true );
141144 $ p = $ pp ->getValue ($ request );
142145 if (is_array ($ p )) {
143146 foreach ($ p as $ key => $ value ) {
@@ -147,13 +150,15 @@ public static function serializeInput(RequestModel $request, OperationInput $inp
147150
148151 //payload
149152 $ pd = $ ro ->getProperty ('payload ' );
153+ $ pd ->setAccessible (true );
150154 $ payload = $ pd ->getValue ($ request );
151155 if ($ payload instanceof StreamInterface) {
152156 $ input ->setBody ($ payload );
153157 }
154158
155159 // all properties in request
156160 foreach ($ ro ->getProperties () as $ property ) {
161+ $ property ->setAccessible (true );
157162 $ val = $ property ->getValue ($ request );
158163 if (!isset ($ val )) {
159164 if (Functions::isRequiredProperty ($ property )) {
0 commit comments