diff --git a/language/oop5/traits.xml b/language/oop5/traits.xml index 30b020289482..9d844b565a6b 100644 --- a/language/oop5/traits.xml +++ b/language/oop5/traits.xml @@ -545,6 +545,36 @@ class ConstantsExample { + + Final methods + + As of PHP 8.3.0, the final + modifier can be applied to methods coming from traits. + + + Defining a method coming from a trait as <literal>final</literal> + + +]]> + + + +