Skip to content

Commit

Permalink
Use constants to define encapsulation characters of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi committed Jun 7, 2021
1 parent bba1a66 commit a546017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function treatValue(mixed &$value): void

$matches = [];
if (!preg_match_all(
'#{\s*(?:=|(?<function>\w+)\s*:\s*)(?<value>[^}]+)\s*}#',
'#' . static::ENCAPSULATION_START . '\s*(?:=|(?<function>\w+)\s*:\s*)(?<value>[^}]+)\s*' . static::ENCAPSULATION_END . '#',
$value,
$matches,
PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL
Expand Down

0 comments on commit a546017

Please sign in to comment.