Skip to content

Commit 687a0ca

Browse files
authored
Fix: Correct trait name in Exemple #11 Propriétés statiques (#2294)
Changed trait declaration from "StaticExample" to "T" to match usage. Problem: The example declared trait "StaticExample" but referenced trait "T" in the class definition, causing a fatal error: Fatal error: Uncaught Error: Trait "T" not found in script:8 Stack trace: #0 {main}
1 parent 0b44166 commit 687a0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/oop5/traits.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ Doing something
482482
<![CDATA[
483483
<?php
484484
485-
trait StaticExample
485+
trait T
486486
{
487487
public static $counter = 1;
488488
}

0 commit comments

Comments
 (0)