php-parser/test/code/prettyPrinter/stmt/class_const.test

20 lines
311 B
Plaintext
Raw Normal View History

Class constants
-----
<?php
class Foo
{
const A = 1, B = 2;
public const C = 3, D = 4;
protected const E = 5, F = 6;
private const G = 7, H = 8;
}
-----
!!php7
class Foo
{
const A = 1, B = 2;
public const C = 3, D = 4;
protected const E = 5, F = 6;
private const G = 7, H = 8;
}