File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dev/tests/static/framework/Magento/TestFramework/Utility Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static function isClassUsed($className, $content)
22
22
{
23
23
/* avoid matching namespace instead of class */
24
24
$ content = preg_replace ('/namespace[^;]+;/ ' , '' , $ content );
25
- return self ::_isRegexpMatched ('/[^a-z\d_] ' . preg_quote ($ className , '/ ' ) . '[^a-z\d_ \\\\]/iS ' , $ content );
25
+ return self ::_isRegexpMatched ('/[^a-z\d_\$ ] ' . preg_quote ($ className , '/ ' ) . '[^a-z\d_ \\\\]/iS ' , $ content );
26
26
}
27
27
28
28
/**
@@ -126,7 +126,7 @@ public static function isDirectDescendant($content, $name)
126
126
{
127
127
$ name = preg_quote ($ name , '/ ' );
128
128
return self ::_isRegexpMatched (
129
- '/\s+extends\s+ ' . $ name . '\b|\s+implements\s+[^{]*\b ' . $ name . '\b[^{^ \\\\]*\{/iS ' ,
129
+ '/\s+extends\s+ \\\\ ? ' . $ name . '\b|\s+implements\s+[^{]*\b ' . $ name . '\b[^{^ \\\\]*\{/iS ' ,
130
130
$ content
131
131
);
132
132
}
You can’t perform that action at this time.
0 commit comments