blob: 8a1fc6f0297bcf0f1a3fe9e220b2491e919ddd8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
Class Property Expressions
--FILE--
<?php
class Foo {
const BAR = 1 << 0;
const BAZ = 1 << 1;
public $bar = self::BAR | self::BAZ;
}
echo (new Foo)->bar;
?>
--EXPECTF--
3
|