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