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 5d7ff38 commit 9ae857bCopy full SHA for 9ae857b
WPForms/Sniffs/PHP/ValidateDomainSniff.php
@@ -210,6 +210,8 @@ private function findDomainByProperty( $filePath ) {
210
211
foreach ( $this->domains as $domain => $paths ) {
212
foreach ( $paths as $path ) {
213
+ $path = rtrim( $path, DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR;
214
+
215
if (
216
strpos( $filePath, $path ) === 0 &&
217
strlen( $path ) > strlen( $currentPath )
0 commit comments