Doc #68400 [Opn->Csd]: [DE] Traits: Change visibility of trait methods isn't valid

From: Date: Sat, 22 Nov 2014 18:59:00 +0000
Subject: Doc #68400 [Opn->Csd]: [DE] Traits: Change visibility of trait methods isn't valid
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11692@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68400&edit=1 ID: 68400 Updated by: salathe@php.net Reported by: a dot daeubler at selv-soft dot de Summary: [DE] Traits: Change visibility of trait methods isn't valid -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: 5.6.2 -Assigned To: +Assigned To: salathe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2014-11-22 18:58:40] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&revision=335208 Log: add missing semicolons in example (doc bug #68400) ------------------------------------------------------------------------ [2014-11-11 12:59:25] a dot daeubler at selv-soft dot de Description: ------------ There's a little syntax error in the german traits documentation: http://php.net/manual/de/language.oop5.traits.php // Ändern der Sichtbarkeit von sayHello class MyClass1 { use HelloWorld { sayHello as protected } } // Alias der Methode mit geänderter Sichtbarkeit // Die Sichtbarkeit von sayHello bleibt unverändert class MyClass2 { use HelloWorld { doHelloWorld as private sayHello } } There are the ; missing after the "as protected" and "as private sayHello" statements. Expected result: ---------------- Correct is: // Ändern der Sichtbarkeit von sayHello class MyClass1 { use HelloWorld { sayHello as protected; } } // Alias der Methode mit geänderter Sichtbarkeit // Die Sichtbarkeit von sayHello bleibt unverändert class MyClass2 { use HelloWorld { doHelloWorld as private sayHello; } } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68400&edit=1

« previous php.doc.bugs (#11692) next »