From a5ed5045ab1b77b5c07b9acdcdb4a526822a27f0 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Thu, 28 Nov 2024 14:27:08 +0100 Subject: [PATCH] [PHP 8.3] New behavior of static properties in traits --- language/oop5/traits.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/language/oop5/traits.xml b/language/oop5/traits.xml index 30b020289482..848240a1cdd6 100644 --- a/language/oop5/traits.xml +++ b/language/oop5/traits.xml @@ -423,6 +423,13 @@ Example::doSomething(); Static Properties + + + Prior to PHP 8.3.0, static properties were shared across all classes + using the trait. As of PHP 8.3.0, each class using the trait has its + own copy of the static property. + +