We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dd1659 commit 869c94aCopy full SHA for 869c94a
tests/PedantryTest.php
@@ -21,6 +21,13 @@ public function testMethodsAreOrderedAlphabeticallyByVisibility($className)
21
$class = new ReflectionClass($className);
22
$methods = $class->getMethods();
23
24
+ $methods = array_filter(
25
+ $methods,
26
+ function(ReflectionMethod $method) use ($class) {
27
+ return $method->getDeclaringClass() == $class;
28
+ }
29
+ );
30
+
31
$getSortValue = function(ReflectionMethod $method) {
32
if ($method->getModifiers() & ReflectionMethod::IS_PRIVATE) {
33
return '2' . $method->getName();
0 commit comments