xref: /PHP-8.2/Zend/tests/gh8810_6.phpt (revision 44cd74b6)
1--TEST--
2GH-8810: Fix reported line number of multi-line static call
3--FILE--
4<?php
5
6class A {
7    public static function b() {
8        throw new Exception();
9    }
10}
11
12A
13    ::
14    b
15    ();
16
17?>
18--EXPECTF--
19Fatal error: Uncaught Exception in %s:5
20Stack trace:
21#0 %s(11): A::b()
22#1 {main}
23  thrown in %s on line 5
24