Skip to content

Commit

Permalink
Merge pull request #3364 from phpDocumentor/fix/revert-use-of-unrelea…
Browse files Browse the repository at this point in the history
…sed-method

Comment use of unreleased method from ReflectionDocBlock
  • Loading branch information
mvriel committed Nov 20, 2022
2 parents eb12f7b + d4dbc74 commit ab2bc26
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function buildDescriptor(object $data): MethodDescriptor
$descriptor = new MethodDescriptor($data->getName());
$descriptor->setMethodName($data->getMethodName());
$descriptor->setStatic($data->isStatic());
$descriptor->setHasReturnByReference($data->returnsReference());

// TODO: Uncomment this line as soon as DocBlockReflection 5.4 is released and included
// $descriptor->setHasReturnByReference($data->returnsReference());

$response = new ReturnDescriptor('return');
$response->setType($data->getReturnType());
Expand Down

0 comments on commit ab2bc26

Please sign in to comment.