Skip to content

Commit 8a5510c

Browse files
committed
Merge branch '3.x' into 4.x
* 3.x: Update CHANGELOG Update CHANGELOG Avoid ord deprecation in PHP 8.5
2 parents b9391dc + eca0d9c commit 8a5510c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runtime/EscaperRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function escape($string, string $strategy = 'html', ?string $charset = nu
272272
* @license https://framework.zend.com/license/new-bsd New BSD License
273273
*/
274274
$chr = $matches[0];
275-
$ord = \ord($chr);
275+
$ord = \ord($chr[0]);
276276

277277
/*
278278
* The following replaces characters undefined in HTML with the

0 commit comments

Comments
 (0)