0

I'm working on an API implementation that was developed using Slim. It uses Illuminate for DB operations. I've pulled the code and have a local environment set up, but when I try to make a request that involves a database operation I get a PHP error - unexpected '.'

Look at one of the class files, I see the following:

public static function __callStatic($method, $parameters)
{
    return static::connection()->$method(...$parameters);
}

The original developer isn't available to ask and I'm puzzled as to what the ... is doing in front of the variable name and how to resolve the errors that I'm getting - can anyone help?

The same code is on the staging and prod environments and works fine there.

Thanks

Nigel Ren
  • 56,122
  • 11
  • 43
  • 55
Nick Roper
  • 127
  • 1
  • 3
  • 13

0 Answers0