|
@@ -65,7 +65,7 @@ |
|
|
block discarded – undo |
|
65
|
65
|
|
|
66
|
66
|
protected static function parseValue(string $content, array $extra = [], bool $raw = true): string |
|
67
|
67
|
{ |
|
68
|
|
- return preg_replace_callback('/\$\{(.+?)\}/', function ($matchs) use ($extra, $raw) { |
|
|
68
|
+ return preg_replace_callback('/\$\{(.+?)\}/', function($matchs) use ($extra, $raw) { |
|
69
|
69
|
$name = $matchs[1]; |
|
70
|
70
|
if (($value = ArrayDotAccess::get($extra, $name, null)) !== null) { |
|
71
|
71
|
} elseif (defined($name)) { |
Please login to merge, or discard this patch.