[英]Symfony2 Array to string conversion
我正在symfony2項目上工作,但出現此異常。 有人知道是什么原因造成的嗎?
注意:C:\\ wamp \\ www \\ EmploiPublic \\ vendor \\ symfony \\ symfony \\ src \\ Symfony \\ Component \\ Form \\ Extension \\ Core \\ ChoiceList \\ ChoiceList.php行中的數組到字符串的轉換
protected function fixIndex($index)
{
if (is_bool($index) || (string) (int) $index === (string) $index) { //this is line 457
return (int) $index;
}
return (string) $index;
}
在調用$ form-> bind($ request)方法后生成錯誤;
if ($request->isMethod('POST')) {
$form->bind($request);
$searchQuery = $form->getData();
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.