Skip to content

Commit 1aea1bd

Browse files
committed
uses nette/utils 4.0
1 parent 7401184 commit 1aea1bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require": {
1818
"php": ">=8.0 <8.3",
1919
"ext-iconv": "*",
20-
"nette/utils": "^3.2.1 || ~4.0.0"
20+
"nette/utils": "^4.0"
2121
},
2222
"require-dev": {
2323
"nette/di": "^3.1 || ^4.0",

src/Mail/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function setHtmlBody(string $html, ?string $basePath = null): static
208208
(["\']?)(?![a-z]+:|[/\#])([^"\'>)\s]+)
209209
|\[\[ ([\w()+./@~-]+) \]\]
210210
#ix',
211-
PREG_OFFSET_CAPTURE,
211+
captureOffset: true,
212212
);
213213
foreach (array_reverse($matches) as $m) {
214214
$file = rtrim($basePath, '/\\') . '/' . (isset($m[4]) ? $m[4][0] : urldecode($m[3][0]));

0 commit comments

Comments
 (0)