Skip to content

Commit 2f7aa89

Browse files
committed
fix deprecation notice
1 parent a94e1a3 commit 2f7aa89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Twig/TwigExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function pregReplace(string $subject, $pattern, $replacement, int $limit
106106
* @return bool|string
107107
* @throws Exception
108108
*/
109-
public function markupAttrs(string $markup, array $attrs = null)
109+
public function markupAttrs(string $markup, ?array $attrs = null)
110110
{
111111
try {
112112
$xml = new SimpleXMLElement($markup);
@@ -205,7 +205,7 @@ public function dateRange(
205205
string $tz,
206206
string $locale,
207207
bool $utc = false,
208-
string $id = null
208+
?string $id = null
209209
): string {
210210
if ($locale == 'en') {
211211
$locale = 'en-GB';

0 commit comments

Comments
 (0)