From a093f3aa99ade6b60b7cc2a204bac64e42f6e7ea Mon Sep 17 00:00:00 2001 From: Fabien Bourigault Date: Sun, 21 Oct 2018 22:02:24 +0200 Subject: [PATCH] document property info exclude static properties --- components/property_info.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/property_info.rst b/components/property_info.rst index b7b9c446426..7a50bef0c87 100644 --- a/components/property_info.rst +++ b/components/property_info.rst @@ -409,6 +409,17 @@ constructor. It supports return and scalar types for PHP 7. // Initializable information $reflectionExtractor->isInitializable($class, $property); +.. tip:: + + By default, the static properties are also extracted. To excluded them, + you can use the ``exclude_static_properties`` context option. + + .. code-block:: php + + $reflectionExtractor->getProperties($class, [ + ReflectionExtractor::EXCLUDE_STATIC_PROPERTIES => true, + ]); + PhpDocExtractor ~~~~~~~~~~~~~~~