mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 09:37:21 +01:00
55c4269232
Implement support for readonly properties (https://wiki.php.net/rfc/readonly_properties_v2) and final class contstants (https://wiki.php.net/rfc/final_class_const).
23 lines
343 B
Plaintext
23 lines
343 B
Plaintext
Class properties
|
|
-----
|
|
<?php
|
|
|
|
class A
|
|
{
|
|
public $a;
|
|
public string $b;
|
|
protected static ?float $c = 5.0;
|
|
private static ?self $d;
|
|
public readonly int|float $e;
|
|
}
|
|
-----
|
|
!!php7
|
|
class A
|
|
{
|
|
public $a;
|
|
public string $b;
|
|
protected static ?float $c = 5.0;
|
|
private static ?self $d;
|
|
public readonly int|float $e;
|
|
}
|