Skip to content

Commit

Permalink
Merge pull request zetacomponents#8 from guillaumelecerf/fix_clone_usage
Browse files Browse the repository at this point in the history
clone is not a function, but a keyword, and so do not need calling parenthesis
  • Loading branch information
derickr committed Apr 30, 2015
2 parents 599350c + e6e3255 commit 0daf49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document/rst/parser.php
Expand Up @@ -3057,7 +3057,7 @@ protected function readSimpleCells( $cellStarts, &$tokens )
/* DEBUG
echo "Split, ";
// /DEBUG */
$newToken = clone( $token );
$newToken = clone $token;
$token->content = substr( $token->content, 0, $split );

$newToken->content = substr( $newToken->content, $split + 1 );
Expand Down

0 comments on commit 0daf49a

Please sign in to comment.