Browse Source

Fix PHPStan

mscherer 1 year ago
parent
commit
53aa0270cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Utility/Text.php

+ 1 - 1
src/Utility/Text.php

@@ -385,7 +385,7 @@ class Text extends CakeText {
 	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 = '';