ソースを参照

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);