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 cf3a5ea commit 37eb67cCopy full SHA for 37eb67c
tests/PedantryTest.php
@@ -33,7 +33,8 @@ public function testMethodsAreOrderedAlphabeticallyByVisibility($className): voi
33
$methods = array_filter(
34
$methods,
35
function (ReflectionMethod $method) use ($class) {
36
- return $method->getDeclaringClass() == $class;
+ return $method->getDeclaringClass() == $class // Exclude inherited methods
37
+ && $method->getFileName() === $class->getFileName(); // Exclude methods inherited from traits
38
}
39
);
40
@@ -86,7 +87,8 @@ public function provideProjectClassNames()
86
87
continue;
88
89
- $classNames[][] = 'MongoDB\\' . str_replace(DIRECTORY_SEPARATOR, '\\', substr($file->getRealPath(), strlen($srcDir) + 1, -4));
90
+ $className = 'MongoDB\\' . str_replace(DIRECTORY_SEPARATOR, '\\', substr($file->getRealPath(), strlen($srcDir) + 1, -4));
91
+ $classNames[$className][] = $className;
92
93
94
return $classNames;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments