解析错误:语法错误,意外T_LNUMBER,期望T_STRING或T_VARIABLE或第118行核心\ cake \ basics.php中的'{'或'$'

Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING or T_VARIABLE or '{' or '$' in core\cake\basics.php on line 118 ) please some one help me.

}

function pluginSplit($name, $dotAppend = false, $plugin = null) {
  if (strpos( $name, '.' ) !== false) {
    $parts = explode( '.', $name, 2 );

    if ($dotAppend) {
      $parts->0 .= '.';
    }
    return $parts;
}

I assume that the error is occurring here:

$parts->0 .= '.';

If you're trying to access the 0th element of the array, the proper syntax is $parts[0].