[Sync EN] Sync enumerations chapter (interactive samples, error message updates)#249
Open
lacatoire wants to merge 1 commit into
Open
[Sync EN] Sync enumerations chapter (interactive samples, error message updates)#249lacatoire wants to merge 1 commit into
lacatoire wants to merge 1 commit into
Conversation
…ge updates) Brings language/enumerations.xml up to date with the upstream rewrite (EN-Revision 1eb67bea30f61f7d9cdfd371146911a0ba07bbd2): - Add annotations="interactive" on the chapter element to enable inline "Run code" on php.net pages. - Wrap most <programlisting> samples in <informalexample> and prepend the relevant enum definition so each sample runs standalone. - Mark a few samples that cannot run standalone with annotations="non-interactive". - Replace placeholder one-liners with real output-producing code (var_dump, print, htmlentities, get_stuff_from_database stub). - Update an error message: "Cannot acquire reference to property Suit::$value" → "Cannot indirectly modify readonly property Suit::$value". - Update the from() error message: "is not a valid scalar value for enum Suit" → "is not a valid backing scalar value for enum Suit". - Reorder the from()/tryFrom() example so tryFrom() comes first. German prose and translated code comments preserved. Existing Maintainer (samesch) is kept.
6694f73 to
949a76c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bringt
language/enumerations.xmlauf den Stand von upstream doc-en (1eb67bea30). Die englische Seite wurde überwiegend umstrukturiert, um dieRun code-Funktion auf php.net zu unterstützen.Änderungen:
annotations="interactive"auf dem<chapter>-Element aktiviert das Inline-Ausführen der Codebeispiele auf php.net.<programlisting>-Blöcke sind nun in<informalexample>gewrappt; die jeweilige Enum-Definition (Suit,UserStatus,Size) wird vor dem Beispielcode wiederholt, damit jedes Beispiel eigenständig läuft.annotations="non-interactive"markiert.$a === $b; // true) wurden durch sichtbar ausgebende Varianten ersetzt (if (...) { print ...; },var_dump,printfmithtmlentities); dieget_stuff_from_database-Stelle hat jetzt einen vollständigen Stub.Cannot acquire reference to property Suit::$value→Cannot indirectly modify readonly property Suit::$value.is not a valid scalar value for enum "Suit"→is not a valid backing scalar value for enum Suit.from()/tryFrom()-Beispiels gemäß EN angepasst.Deutsche Prosa und übersetzte Code-Kommentare wurden bewusst beibehalten. Bestehender
Maintainer:(samesch) wurde beibehalten.Schließt indirekt #88 (der ursprüngliche
static/self-Fix war bereits viaSync with ENinbff9d5eb87enthalten; mit diesem Sync ist die Datei jetzt vollständig auf dem aktuellen Stand).