Skip to content

Commit 1104896

Browse files
committed
MC-36204: Update M2 PayPal BN codes
1 parent 5bc6ebf commit 1104896

File tree

1 file changed

+3
-2
lines changed
  • dev/tests/static/framework/Magento/TestFramework/Dependency

1 file changed

+3
-2
lines changed

dev/tests/static/framework/Magento/TestFramework/Dependency/PhpRule.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ private function caseClassesAndIdentifiers($currentModule, $file, &$contents)
167167
'[_\\\\]|',
168168
Files::init()->getNamespaces()
169169
)
170-
. '[_\\\\])[a-zA-Z0-9]+)'
171-
. '(?<class_inside_module>[a-zA-Z0-9_\\\\]*))\b(?:::(?<module_scoped_key>[a-z0-9_]+)[\'"])?~';
170+
. '(?<delimiter>[_\\\\]))[a-zA-Z0-9]{2,})'
171+
. '(?<class_inside_module>\\4[a-zA-Z0-9_\\\\]{2,})?)\b'
172+
. '(?:::(?<module_scoped_key>[A-Za-z0-9_/.]+)[\'"])?~';
172173

173174
if (!preg_match_all($pattern, $contents, $matches)) {
174175
return [];

0 commit comments

Comments
 (0)