Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#5793 from lilobase/Soa…
Browse files Browse the repository at this point in the history
…pDotNetEmptyResult

[Soap\Client\DotNet][FIX] Undefined property in void return
  • Loading branch information
weierophinney committed Mar 4, 2014
2 parents 81bebe2 + 2add049 commit db953bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Client/DotNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ protected function _preProcessArguments($arguments)
protected function _preProcessResult($result)
{
$resultProperty = $this->getLastMethod() . 'Result';
return $result->$resultProperty;
if (property_exists($result, $resultProperty)) {
return $result->$resultProperty;
}
return $result;
}

/**
Expand Down

0 comments on commit db953bf

Please sign in to comment.