Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26ff530

Browse files
authored
Use correct term for backslash
1 parent 0109efc commit 26ff530

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/DependencyInjection/DoctrineExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ private function detectMappingType(string $directory, ContainerBuilder $containe
437437
public static function textContainsAnnotation(string $quotedMappingObjectName, string $content): bool
438438
{
439439
return preg_match('/^(?:[ ]\*|\/\*\*)[ ]@ # Match phpdoc start or line with an at
440-
\\\\? # Can start with antislash
441-
([a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*\\\\)* # Match namespace components ending with antislash
440+
\\\\? # Can start with backslash
441+
([a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*\\\\)* # Match namespace components ending with backslash
442442
' . $quotedMappingObjectName . ' # The target class
443443
\b # Match word boundary
444444
/mx', $content) === 1;

0 commit comments

Comments
 (0)