xref: /php-src/Zend/tests/gh8810_2.phpt (revision 44cd74b6)
1--TEST--
2GH-8810: Fix reported line number of multi-line method call
3--FILE--
4<?php
5
6class A {
7    public function b() {
8        throw new Exception();
9    }
10}
11
12(new A())
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