--TEST-- GH-12854 (8.3 - as final trait-used method does not correctly report visibility in Reflection) --FILE-- isFinal()); var_dump($rm->isPublic()); var_dump($rm->isProtected()); var_dump($rm->isPrivate()); } ?> --EXPECTF-- Warning: Private methods cannot be final as they are never overridden by other classes in %s on line %d Warning: Private methods cannot be final as they are never overridden by other classes in %s on line %d --- Method: pub --- bool(true) bool(true) bool(false) bool(false) --- Method: prot --- bool(true) bool(false) bool(true) bool(false) --- Method: priv --- bool(true) bool(false) bool(false) bool(true) --- Method: final1 --- bool(true) bool(false) bool(false) bool(true) --- Method: final2 --- bool(true) bool(false) bool(true) bool(false) --- Method: final3 --- bool(true) bool(true) bool(false) bool(false)