- 在CompilerBase.php中检测接收器类型为void时抛出致命错误 - 为变量表达式方法调用添加void类型检查 - 为命名方法调用添加void类型检查 - 在单元测试中添加void方法调用测试用例 - 创建void方法调用测试代码文件pull/1/head
parent
057e25a950
commit
52fcc86660
3 changed files with 20 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
<?php |
||||
function bar(): void { |
||||
var_dump(__FUNCTION__); |
||||
} |
||||
|
||||
function main() |
||||
{ |
||||
var_dump(bar()->toString()); |
||||
} |
||||
Loading…
Reference in new issue