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 cbec201 commit 47999e0Copy full SHA for 47999e0
src/collector/project/IndexCollection.php
@@ -120,8 +120,8 @@ public function addTrait(TraitObject $trait) {
120
* @return \DOMNodeList
121
*/
122
public function findUnitNodesBySrcFile($path) {
123
- $search = new FileInfo($path);
124
- return $this->getRootElement()->query(sprintf('//*[@src="%s"]', $search->getRelative($this->srcDir)));
+ $src = substr($path, strlen($this->srcDir) + 1);
+ return $this->getRootElement()->query(sprintf('//*[@src="%s"]', $src));
125
}
126
127
/**
0 commit comments