ru_php/Zend/tests/nullsafe_operator/constant_propagation.phpt

17 lines
250 B
PHP

--TEST--
Constant propagation with nullsafe operator
--FILE--
<?php
class Bar { const FOO = "foo"; }
try {
Bar::FOO?->length();
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Call to a member function length() on string