mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
15 lines
231 B
PHP
15 lines
231 B
PHP
--TEST--
|
|
Literal compaction should take method calls on literals into account
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
(42)->foo();
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Call to a member function foo() on integer
|