3ehu
Results
1
comments of
3ehu
Case 1: ``` $method = PhpMethod::create('MyMethod'); $method->setType('Bar[]'); // $method->getDocblock()->appendTag(ReturnTag::create("Bar[]")); $class = PhpClass::create("Bar") ->setMethod($method); $generator = new CodeGenerator([ 'generateReturnTypeHints' => true ]); print_r($generator->generate($class)); ``` Result ``` /** * @return Bar[] */...