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 cda009b commit 5e9bf86Copy full SHA for 5e9bf86
src/Analyser/FileAnalyser.php
@@ -108,6 +108,15 @@ public function analyseFile(
108
$traitNode = $node->getOriginalNode();
109
$linesToIgnore[$scope->getFileDescription()] = $this->getLinesToIgnoreFromTokens([$traitNode]);
110
}
111
+
112
+ if ($scope->isInTrait()) {
113
+ $traitReflection = $scope->getTraitReflection();
114
+ if ($traitReflection->getFileName() !== null) {
115
+ $traitFilePath = $traitReflection->getFileName();
116
+ $parserNodes = $this->parser->parseFile($traitFilePath);
117
+ }
118
119
120
if ($outerNodeCallback !== null) {
121
$outerNodeCallback($node, $scope);
122
0 commit comments