Parse error: syntax error, Unexpected T_OBJECT_OPERATOR in

Asked

Viewed 37 times

0

My file is showing error in the highlighted line with the following

Parse error: syntax error, Unexpected T_OBJECT_OPERATOR in C: Webserver Apache2.2 htdocs test vendorLaravel framework src Illuminate Foundation Application.php on line 261.

I’m still beginner in php and I’m getting beat up with this, can you help me? Code below:

@param  array|string  $envs

@return string

public function detectEnvironment($envs)
{
   $args = isset($_SERVER['argv']) ? $_SERVER['argv'] : null;
   return $this['env'] = (new EnvironmentDetector())->detect($envs, $args);
}
  • Which version of php vc uses?

  • I’m using the 5.5.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.