php8.1: added never type (#8)

This commit is contained in:
Makhnev Petr
2021-07-31 18:06:46 +03:00
committed by GitHub
parent 8c35b0aef1
commit 8df80651e0
2 changed files with 34 additions and 0 deletions

View File

@@ -23,3 +23,9 @@ class Foo {
}
`)
}
func TestNeverTypePHP81(t *testing.T) {
tester.NewParserPrintTestSuite(t).UsePHP8().Run(`<?php
function f(): never {}
`)
}