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

Issue with class name alias #249

Open
felixfbecker opened this issue Jun 12, 2018 · 2 comments
Open

Issue with class name alias #249

felixfbecker opened this issue Jun 12, 2018 · 2 comments

Comments

@felixfbecker
Copy link

From @p810 on June 12, 2018 15:3

Given the following code:

<?php

namespace Foo\Bar;

use Foo\Quux\Service as QuuxService;

class Quux { /* ... */ }

I'm getting the following error:

File.php src/Foo
    [php] ';' expected (5, 19)

Copied from original issue: felixfbecker/php-language-server#649

@TysonAndre
Copy link
Contributor

Are you able to reproduce it with the exact snippet? The column seems wrong, and I don't see that error.

Maybe the name they are using isn't actually Service, but some other reserved keyword (e.g. #205 has a similar error message)

@p810
Copy link

p810 commented Jun 12, 2018

I'll post code that can reproduce the error in a bit; the actual snippet is code that my employer technically owns so I don't know if they'd want me sharing it outside of the organization y'know.

I wrote this code just to demonstrate the error I've been getting. The column may have been counted off because I was just scanning with my eyes and wasn't typing it in my IDE, lol.

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

No branches or pull requests

3 participants