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
260260
261261 $ constants = $ this ->reflection ->getConstants ();
262262
263- if ($ constants )
263+ if ($ constants && ' isStatic ' != $ accessType )
264264 {
265265 \ksort ($ constants , SORT_FLAG_CASE | SORT_STRING );
266266 $ section = 'Constants ' ;
@@ -269,7 +269,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
269269 {
270270 $ constant = new \ReflectionClassConstant ($ this ->class , $ name );
271271
272- if (\method_exists ( $ constant , $ accessType ) && $ constant ->{$ accessType }())
272+ if ($ constant ->{$ accessType }())
273273 {
274274 if ($ section )
275275 {
@@ -292,7 +292,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
292292
293293 foreach ($ properties as $ property )
294294 {
295- if (\method_exists ( $ property , $ accessType ) && $ property ->{$ accessType }())
295+ if ($ property ->{$ accessType }())
296296 {
297297 if ($ section )
298298 {
@@ -315,7 +315,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
315315
316316 foreach ($ methods as $ method )
317317 {
318- if (\method_exists ( $ method , $ accessType ) && $ method ->{$ accessType }())
318+ if ($ method ->{$ accessType }())
319319 {
320320 if ($ section )
321321 {
You can’t perform that action at this time.
0 commit comments