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 940cf8c commit 0d5ee82Copy full SHA for 0d5ee82
Inpsyde/Sniffs/CodeQuality/Psr4Sniff.php
@@ -107,8 +107,10 @@ private function checkPsr4(
107
list(, $namespace) = PhpcsHelpers::findNamespace($file, $position);
108
109
$fullyQualifiedName = "{$namespace}\\{$className}";
110
- if (in_array($fullyQualifiedName, $this->exclude, true)) {
111
- return;
+ foreach ($this->exclude as $excluded) {
+ if (strpos($fullyQualifiedName, $excluded) === 0) {
112
+ return;
113
+ }
114
}
115
116
$filePath = str_replace('\\', '/', $file->getFilename());
0 commit comments