xref: /PHP-8.2/Zend/tests/gh16508.phpt (revision 2d068c4f)
1--TEST--
2GH-16508: Missing lineno in inheritance errors of delayed early bound classes
3--EXTENSIONS--
4opcache
5--INI--
6opcache.enable_cli=1
7--FILE--
8<?php
9
10new Test2;
11
12class Test2 extends Test {}
13
14abstract class Test {
15    abstract function foo();
16}
17
18?>
19--EXPECTF--
20Fatal error: Class Test2 contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Test::foo) in %s on line 5
21