浏览代码

Allow engines to work in 5.x

mscherer 2 年之前
父节点
当前提交
1a558aaea4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/View/Helper/TextHelper.php

+ 1 - 1
src/View/Helper/TextHelper.php

@@ -49,7 +49,7 @@ class TextHelper extends CakeTextHelper {
 	 * @param array<string, mixed> $config Settings array Settings array
 	 */
 	public function __construct(View $View, array $config = []) {
-		$config = Hash::merge(['engine' => 'Tools.Text'], $config);
+		$config += ['engine' => 'Tools.Text'];
 
 		parent::__construct($View, $config);