浏览代码

Fix PHPStan

mscherer 1 年之前
父节点
当前提交
53aa0270cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 = '';