Skip to content

Including a constant as a parameter default. #75

@Kruithne

Description

@Kruithne

In the latest versions of PHP, it is perfectly valid to use a constant (const) as a default for a function parameter.

public function __construct(int $flags = self::DEFAULT_FLAGS) {

This however, is detected as a syntax error by php.tmbundle, as show below.

kramework7autoloader php_at_master_ _kruithnekra_2017-01-26_21-47-49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions