Doc #68400 [NEW]: German-Documentation: Traits: Change visibility of trait methods isn't valid

From: Date: Tue, 11 Nov 2014 12:59:26 +0000
Subject: Doc #68400 [NEW]: German-Documentation: Traits: Change visibility of trait methods isn't valid
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11627@lists.php.net to get a copy of this message
From: a dot daeubler at selv-soft dot de Operating system: PHP version: 5.6.2 Package: Translation problem Bug Type: Documentation Problem Bug description:German-Documentation: Traits: Change visibility of trait methods isn't valid 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 bug report at https://bugs.php.net/bug.php?id=68400&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68400&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68400&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68400&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68400&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68400&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68400&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68400&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68400&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68400&r=support Expected behavior: https://bugs.php.net/fix.php?id=68400&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68400&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68400&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68400&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68400&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68400&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68400&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68400&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68400&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68400&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68400&r=mysqlcfg

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