From 53aa0270cccb175ab94f8cfd8701680fae78b541 Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 22 May 2024 02:58:40 +0200 Subject: [PATCH] Fix PHPStan --- src/Utility/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utility/Text.php b/src/Utility/Text.php index 0820ddbd..919de59f 100644 --- a/src/Utility/Text.php +++ b/src/Utility/Text.php @@ -385,7 +385,7 @@ public function asciiToEntities($str) { public function entitiesToAscii($str, $all = true) { if (preg_match_all('/\&#(\d+)\;/', $str, $matches)) { for ($i = 0, $s = count($matches['0']); $i < $s; $i++) { - $digits = $matches['1'][$i]; + $digits = (int)$matches['1'][$i]; $out = '';