Skip to content

Commit 360bca1

Browse files
staabmsebastianbergmann
authored andcommitted
Fix handling of possible null return
1 parent 174eb15 commit 360bca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/MockObject/Generator/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public function generateClassFromWsdl(string $wsdlFile, string $className, array
468468

469469
try {
470470
$client = new SoapClient($wsdlFile, $options);
471-
$_methods = array_unique($client->__getFunctions());
471+
$_methods = array_unique($client->__getFunctions() ?? []);
472472

473473
unset($client);
474474
} catch (SoapFault $e) {

0 commit comments

Comments
 (0)