Skip to content

Commit a093f3a

Browse files
committed
document property info exclude static properties
1 parent 1effc0a commit a093f3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/property_info.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,17 @@ constructor. It supports return and scalar types for PHP 7.
409409
// Initializable information
410410
$reflectionExtractor->isInitializable($class, $property);
411411
412+
.. tip::
413+
414+
By default, the static properties are also extracted. To excluded them,
415+
you can use the ``exclude_static_properties`` context option.
416+
417+
.. code-block:: php
418+
419+
$reflectionExtractor->getProperties($class, [
420+
ReflectionExtractor::EXCLUDE_STATIC_PROPERTIES => true,
421+
]);
422+
412423
PhpDocExtractor
413424
~~~~~~~~~~~~~~~
414425

0 commit comments

Comments
 (0)