Skip to content

Commit 6976961

Browse files
committed
Ensure test case correctly defines return type of ::_unimplemented() stub
This causes tests to fail, but only in PHP8. Change-Id: If1ae0b8b7c27def2b56119f40dfabc12e39b42ad
1 parent 639ff28 commit 6976961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/IDLeDOMTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testStubs( string $stubname ) {
3232
$expr = "new class() implements $inter {\n" .
3333
implode( "\n", $stubs ) . "\n" .
3434
( $helper ? "\tuse $helper;\n" : '' ) .
35-
"\tprotected function _unimplemented() {\n" .
35+
"\tprotected function _unimplemented() : \\Exception {\n" .
3636
"\t\treturn new \\Exception();\n" .
3737
"\t}\n" .
3838
"};";

0 commit comments

Comments
 (0)