We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e96d0d0 + 0e91a43 commit 806997bCopy full SHA for 806997b
src/Parser/SniffParser.php
@@ -78,8 +78,8 @@ private function getSniffClassName(string $phpFilePath): string
78
*/
79
private function getSniffFileParts(string $filePath): array
80
{
81
- $part = '([^\/]*)';
82
- preg_match("/$part\/Sniffs\/$part\/{$part}Sniff\.php/", $filePath, $matches);
+ $part = '([^/]*)';
+ preg_match("`$part/Sniffs/$part/{$part}Sniff\.php$`", $filePath, $matches);
83
if ($matches === []) {
84
throw NotASniffPath::fromPath($filePath);
85
}
0 commit comments