1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Add missing return type

This commit is contained in:
Matthew Brown 2019-03-01 09:24:52 -05:00
parent 619590aa71
commit 564da61937

View File

@ -109,7 +109,7 @@ class FunctionLikeParameter
. ($this->is_optional ? '=' : '');
}
public function getId()
public function getId() : string
{
return ($this->type ? $this->type->getId() : 'mixed')
. ($this->is_variadic ? '...' : '')