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

PhpWorker: php 'use' statement complaint #4942

Closed
ron4mac opened this issue Oct 4, 2022 · 2 comments
Closed

PhpWorker: php 'use' statement complaint #4942

ron4mac opened this issue Oct 4, 2022 · 2 comments

Comments

@ron4mac
Copy link

ron4mac commented Oct 4, 2022

Describe the bug

scanner erroneously complains when there are backslashes (\) in the 'use' statement.

Expected Behavior

no complaint

Current Behavior

Flags statement with " Syntax error, unexpected T_STRING, expecting '{' "

Reproduction Steps

Open .php file using php mode. Enter line similar to the following:

use Joomla\CMS\Factory;

Possible Solution

No response

Additional Information/Context

No response

Ace Version

1.11.2

@andrewnester
Copy link
Contributor

I'd be curious to hear if @nikic has any input here why our lexer based on his library does not handle use namespaces correctly

@andrewnester
Copy link
Contributor

Fixed and released in 1.12.0

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

No branches or pull requests

2 participants