add PHP 7.1 typehints

This commit is contained in:
TomasVotruba
2017-11-30 10:27:01 +01:00
committed by Jaap van Otterdijk
parent f9d1a0c177
commit 4a9675841b
64 changed files with 410 additions and 430 deletions
+2 -3
View File
@@ -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);
}