Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 796 Bytes

limits.md

File metadata and controls

74 lines (50 loc) · 796 Bytes

Limits

Multiple properties

Multiple properties in a single definition are not supported.

<?php

class Foo
{
    public $foo, $bar;
}

Multiple uses

Multiple uses in a single definition are not supported.

<?php

use Foo, Bar;

Multiple declares

Multiple declare definitions are not supported.

<?php

declare(ticks=4);
declare(strict_types=1);

Multiple attributes

Multiple attributes in a single definition are not supported.

<?php

#[Foo, Bar]
class Foo
{
}

Also multiple attributes with the same class are not supported.

<?php

#[Foo]
#[Foo]
class Foo
{
}

Multiple class constants

Multiple class constants in a single definition are not supported.

<?php

class Foo
{
    const FOO = 1, BAR = 2;
}