File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ static protected function capitalizeRequestData($data)
3838
3939 $ data [ucfirst ($ key )] = $ value ;
4040
41- if (ctype_lower ($ key {0 })) {
41+ if (is_string ( $ key ) && ctype_lower ($ key {0 })) {
4242 unset($ data [$ key ]);
4343 }
4444 }
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ public function toArray()
9898 'captureOnLowRisk ' => $ this ->isCaptureOnLowRisk (),
9999 'voidOnHighRisk ' => $ this ->isVoidOnHighRisk (),
100100 'status ' => $ this ->getStatus (),
101- 'browser ' => $ this ->getBrowser ()-> toArray (),
102- 'cart ' => $ this ->getCart ()-> toArray (),
101+ 'browser ' => (( $ this ->getBrowser ()) ? $ this -> getBrowser ()-> toArray () : null ),
102+ 'cart ' => (( $ this ->getCart ()) ? $ this -> getCart ()-> toArray () : null ),
103103 'replyData ' => ($ this ->getReplyData ()) ? $ this ->getReplyData ()->toArray () : null ,
104104 ];
105105 }
You can’t perform that action at this time.
0 commit comments