mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Add test for empty callable
This commit is contained in:
parent
3213695c95
commit
211b87ce8d
@ -312,6 +312,17 @@ class TypeParseTest extends TestCase
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testEmptyCallable()
|
||||
{
|
||||
$this->assertSame(
|
||||
'callable() : void',
|
||||
(string)Type::parseString('callable() : void')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user