0

I'm having a problem in my script class, is giving me the error:

Parse error: syntax error, unexpected '$client' (T_VARIABLE), expecting identifier (T_STRING) 

But I can't figure out what is the problem with the "client Variable".

Zoe stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
Mônica R.
  • 225
  • 2
  • 13

1 Answers1

0

While accessing constant class members you need to use self::, but while accessing local variable you can use simply by variable name.

So you need to use self::client instead of $client. Because $client is constant class member.

DEMO or See More Info

Manwal
  • 22,994
  • 11
  • 59
  • 91