mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 17:47:23 +01:00
20 lines
311 B
Plaintext
20 lines
311 B
Plaintext
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;
|
|
} |