Skip to content

Commit

Permalink
Fix CS/WS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 2, 2023
1 parent ded519e commit db3c410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Framework/MockObject/Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ public function generateClassFromWsdl(string $wsdlFile, string $className, array
try {
$client = new SoapClient($wsdlFile, $options);
$_methods = array_unique($client->__getFunctions());

unset($client);
} catch (SoapFault $e) {
throw new RuntimeException(
Expand All @@ -425,6 +426,7 @@ public function generateClassFromWsdl(string $wsdlFile, string $className, array

foreach ($_methods as $method) {
preg_match_all('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\(/', $method, $matches, PREG_OFFSET_CAPTURE);

$lastFunction = array_pop($matches[0]);
$nameStart = $lastFunction[1];
$nameEnd = $nameStart + strlen($lastFunction[0]) - 1;
Expand Down

0 comments on commit db3c410

Please sign in to comment.