1--TEST--
2Literal compaction should take method calls on literals into account
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8try {
9 (42)->foo();
10} catch (Error $e) {
11 echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECT--
16Call to a member function foo() on int
17