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?
– rray
I’m using the 5.5.
– Felipe Scars Silva