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:
parent
90b2933525
commit
dd0d97755c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user