php8.1: added never type (#8)
This commit is contained in:
@@ -23,3 +23,9 @@ class Foo {
|
||||
}
|
||||
`)
|
||||
}
|
||||
|
||||
func TestNeverTypePHP81(t *testing.T) {
|
||||
tester.NewParserPrintTestSuite(t).UsePHP8().Run(`<?php
|
||||
function f(): never {}
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user