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 8bed61b commit 0e91a43Copy full SHA for 0e91a43
src/Parser/SniffParser.php
@@ -77,8 +77,8 @@ private function getSniffClassName(string $phpFilePath): string
77
*/
78
private function getSniffFileParts(string $filePath): array
79
{
80
- $part = '([^\/]*)';
81
- preg_match("/$part\/Sniffs\/$part\/{$part}Sniff\.php/", $filePath, $matches);
+ $part = '([^/]*)';
+ preg_match("`$part/Sniffs/$part/{$part}Sniff\.php$`", $filePath, $matches);
82
if ($matches === []) {
83
throw NotASniffPath::fromPath($filePath);
84
}
0 commit comments