mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
clone is no function, remove the confusing ()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@224288 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
790db52f21
commit
bdedb4206e
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<sect1 id="language.oop5.cloning">
|
||||
<title>Object cloning</title>
|
||||
|
||||
|
@ -65,7 +65,7 @@ class MyCloneable
|
|||
{
|
||||
// Force a copy of this->object, otherwise
|
||||
// it will point to same object.
|
||||
$this->object1 = clone($this->object1);
|
||||
$this->object1 = clone $this->object1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue