File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/PHPFUI/InstaDoc/Section Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
260
260
261
261
$ constants = $ this ->reflection ->getConstants ();
262
262
263
- if ($ constants )
263
+ if ($ constants && ' isStatic ' != $ accessType )
264
264
{
265
265
\ksort ($ constants , SORT_FLAG_CASE | SORT_STRING );
266
266
$ section = 'Constants ' ;
@@ -269,7 +269,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
269
269
{
270
270
$ constant = new \ReflectionClassConstant ($ this ->class , $ name );
271
271
272
- if (\method_exists ( $ constant , $ accessType ) && $ constant ->{$ accessType }())
272
+ if ($ constant ->{$ accessType }())
273
273
{
274
274
if ($ section )
275
275
{
@@ -292,7 +292,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
292
292
293
293
foreach ($ properties as $ property )
294
294
{
295
- if (\method_exists ( $ property , $ accessType ) && $ property ->{$ accessType }())
295
+ if ($ property ->{$ accessType }())
296
296
{
297
297
if ($ section )
298
298
{
@@ -315,7 +315,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
315
315
316
316
foreach ($ methods as $ method )
317
317
{
318
- if (\method_exists ( $ method , $ accessType ) && $ method ->{$ accessType }())
318
+ if ($ method ->{$ accessType }())
319
319
{
320
320
if ($ section )
321
321
{
You can’t perform that action at this time.
0 commit comments