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

Add test for missing closure return type

This commit is contained in:
Matthew Brown 2018-01-07 13:21:08 -05:00
parent 90b2933525
commit dd0d97755c

View File

@ -145,6 +145,21 @@ class FileManipulationTest extends TestCase
'7.0',
['MissingReturnType'],
],
'addMissingClosureStringReturnType56' => [
'<?php
$a = function() {
return "hello";
}',
'<?php
$a = /**
* @return string
*/
function() {
return "hello";
}',
'5.6',
['MissingClosureReturnType'],
],
'addMissingNullableStringReturnType56' => [
'<?php
function foo() {