Skip to content

Commit

Permalink
Fix namespace matching
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi authored Dec 30, 2023
1 parent 334a95f commit 11da268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Selector/ClassNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function matches(ClassReflection $classReflection): bool
return $this->matchesRegex($namespace);
}

return str_starts_with(\trimSeparators($namespace), \trimSeparators($this->namespace));
return str_starts_with(\trimSeparators($namespace) . '\\', \trimSeparators($this->namespace) . '\\');
}

private function matchesRegex(string $namespace): bool
Expand Down

0 comments on commit 11da268

Please sign in to comment.