Skip to content

Commit c402b50

Browse files
committed
Finalize the quoted argument matcher
1 parent a061b05 commit c402b50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Parser/QuotedArgumentMatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Double-quoted literals only accept the escaped backslash and quote;
1313
* interpolation and other escape sequences are dynamic values and never match.
1414
*/
15-
class QuotedArgumentMatcher
15+
final class QuotedArgumentMatcher
1616
{
1717
private const LITERAL = '(?:\'(?<single>(?:\\\\.|[^\'\\\\])+)\'|"(?<double>(?:\\\\[\\\\"]|[^"\\\\$])+)")';
1818

@@ -76,7 +76,7 @@ private function match(string $text, string $pattern): array
7676
return $arguments;
7777
}
7878

79-
protected function decode(string $raw, bool $single): string
79+
private function decode(string $raw, bool $single): string
8080
{
8181
return $single
8282
? strtr($raw, ['\\\\' => '\\', "\\'" => "'"])

0 commit comments

Comments
 (0)