ridvanaltun / guacamole-php-sdk

Manage Guacamole with an easy SDK.
MIT License
3 stars 3 forks source link

syntax error, unexpected ')' #3

Open lexcorp opened 3 years ago

lexcorp commented 3 years ago

PHP Parse error: syntax error, unexpected ')' in /var/www/html/guacamole-php-sdk/src/Operation.php on line 66

/**
 * Bind token
 *
 * @param   array  $options  Request options
 *
 * @return  array            New request options
 */
private function withAuthToken(array $options) {
    return array_merge(
        $options, [
            'query' => ['token' => $this->token],
        ], <------- In this line
    );
}
ridvanaltun commented 3 years ago

PHP Parse error: syntax error, unexpected ')' in /var/www/html/guacamole-php-sdk/src/Operation.php on line 66

/**
 * Bind token
 *
 * @param   array  $options  Request options
 *
 * @return  array            New request options
 */
private function withAuthToken(array $options) {
  return array_merge(
      $options, [
          'query' => ['token' => $this->token],
      ], <------- In this line
  );
}

I can't see any syntax error here, can you give me more information?