Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Default array value syntax error with class constants #363

@mundschenk-at

Description

@mundschenk-at

Prerequisites

Description

When there's an array type hint for a method/function parameter, the use of (class) constants is flagged as a syntax error. Removing the array fixes it. This is similar to #64.

image

image

(self::DEFAULT_CHARACTER_MAPPING being defined as a constant array.)

Versions

Atom : 1.38.2
Electron: 2.0.18
Chrome : 61.0.3163.100
Node : 8.9.3

apm 2.1.7
npm 6.2.0
node 8.9.3 x64
atom 1.38.2
python 2.7.10
git 2.21.0

macOS 10.14.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions