Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error with constant arrays #199

Open
mundschenk-at opened this issue May 31, 2018 · 0 comments
Open

Syntax error with constant arrays #199

mundschenk-at opened this issue May 31, 2018 · 0 comments
Labels

Comments

@mundschenk-at
Copy link

When a plugin includes constant arrays (a feature since PHP 5.6), the parser throws an error and appears to continue the import, but really skips the file.

Example:

Parse Error: Syntax error, unexpected '[' on line 544Starting import. This will take some time…

The code in question (starting with line 544):

			if ( ! empty( self::COLUMN_FORMAT_STRINGS[ $key ] ) ) {
				$format_strings[] = self::COLUMN_FORMAT_STRINGS[ $key ];
			}

Neither the containing class nor any hooks etc. appear in the generated code reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants