Skip to content

Conversation

@dominservice
Copy link

stristr(): Argument #1 ($haystack) must be of type string, null given

at domains/______.pl/public_html/vendor/mrcnpdlk/regon-api/src/RegonSoapClient.php:78
74▕ $hdr->appendChild(new DOMElement('To', $location, 'http://www.w3.org/2005/08/addressing'));
75▕ $dom->documentElement->insertBefore($hdr, $dom->documentElement->firstChild);
76▕ $request = $dom->saveXML();
77▕ $response = parent::__doRequest($request, $location, $action, $version, $oneWay);
➜ 78▕ $response = stristr(stristr($response, '<s:'), '</s:Envelope>', true) . '</s:Envelope>';
79▕
80▕ return $response;
81▕ }
82▕

 stristr(): Argument mrcnpdlk#1 ($haystack) must be of type string, null given

  at domains/______.pl/public_html/vendor/mrcnpdlk/regon-api/src/RegonSoapClient.php:78
     74▕         $hdr->appendChild(new DOMElement('To', $location, 'http://www.w3.org/2005/08/addressing'));
     75▕         $dom->documentElement->insertBefore($hdr, $dom->documentElement->firstChild);
     76▕         $request  = $dom->saveXML();
     77▕         $response = parent::__doRequest($request, $location, $action, $version, $oneWay);
  ➜  78▕         $response = stristr(stristr($response, '<s:'), '</s:Envelope>', true) . '</s:Envelope>';
     79▕ 
     80▕         return $response;
     81▕     }
     82▕
@dominservice dominservice changed the title Fix bux by empty response from SOAP Fix bug by empty response from SOAP Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant