0

Error coming up saying

Parse error: syntax error, unexpected '-', expecting ',' or ';

alluding to

use Firebase\php-jwt\src\ExpiredException;

i pulled the file from git so not sure if it would be wise to rename the files

JustCarty
  • 3,839
  • 5
  • 31
  • 51
  • 2
    @Arun, what more detail do you need? There's a `-` in a namespace. – u_mulder Apr 10 '18 at 11:59
  • 2
    Duplicate: https://stackoverflow.com/a/38245855/3578036 – JustCarty Apr 10 '18 at 11:59
  • The name of a namespace is a regular identifier. It can start with a letter or an underscore (`_`) and it can contain only letters, underscores and digits. Dashes (`-`) are not allowed. – axiac Apr 10 '18 at 12:00
  • I don't think that is the namespace... I think that is the name of the file. Try `use Firebase\JWT\ExpiredException` – JustCarty Apr 10 '18 at 12:00

1 Answers1

0

That is the location of the file, not the namespace.
Try this instead:

use Firebase\JWT\ExpiredException;
JustCarty
  • 3,839
  • 5
  • 31
  • 51