File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,11 @@ public function getCgiUrl()
169
169
*/
170
170
public function getMethodConfigData ($ fieldName )
171
171
{
172
- if ($ this ->getMethod () instanceof TransparentInterface) {
173
- return $ this ->getMethod ()->getConfigInterface ()->getValue ($ fieldName );
172
+ $ method = $ this ->getMethod ();
173
+ if ($ method instanceof TransparentInterface) {
174
+ return $ method ->getConfigInterface ()->getValue ($ fieldName );
174
175
}
175
- return $ this -> getMethod () ->getConfigData ($ fieldName );
176
+ return $ method ->getConfigData ($ fieldName );
176
177
}
177
178
178
179
/**
Original file line number Diff line number Diff line change @@ -20,9 +20,13 @@ class HtmlFormConverter implements ConverterInterface
20
20
public function convert ($ response )
21
21
{
22
22
$ document = new \DOMDocument ();
23
+
24
+ libxml_use_internal_errors (true );
23
25
if (!$ document ->loadHTML ($ response )) {
24
26
throw new ConverterException (__ ('Wrong gateway response format. ' ));
25
27
}
28
+ libxml_use_internal_errors (false );
29
+
26
30
$ document ->getElementsByTagName ('input ' );
27
31
28
32
$ convertedResponse = [];
You can’t perform that action at this time.
0 commit comments