1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add test for empty callable

This commit is contained in:
Matthew Brown 2018-03-28 10:53:19 -04:00
parent 3213695c95
commit 211b87ce8d

View File

@ -312,6 +312,17 @@ class TypeParseTest extends TestCase
);
}
/**
* @return void
*/
public function testEmptyCallable()
{
$this->assertSame(
'callable() : void',
(string)Type::parseString('callable() : void')
);
}
/**
* @return void
*/