mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
add PHP 7.1 typehints
This commit is contained in:
committed by
Jaap van Otterdijk
parent
f9d1a0c177
commit
4a9675841b
@@ -49,11 +49,10 @@ class DescriptionFactory
|
||||
* Returns the parsed text of this description.
|
||||
*
|
||||
*
|
||||
* @return Description
|
||||
*/
|
||||
public function create(string $contents, TypeContext $context = null): Description
|
||||
public function create(string $contents, ?TypeContext $context = null): Description
|
||||
{
|
||||
list($text, $tags) = $this->parse($this->lex($contents), $context);
|
||||
[$text, $tags] = $this->parse($this->lex($contents), $context);
|
||||
|
||||
return new Description($text, $tags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user