8000 document property info exclude static properties · symfony/symfony-docs@a093f3a · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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
410 8000 410
$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)
0