FormHelper, fixes fatal error in line 2879

When creating inputs with FormHelper::input i get this error:

Error: Cannot unset string offsets	
File /srv/www/restr-dev.elements.dk/www/vendor/cakephp/cakephp/src/View/Helper/FormHelper.php	
Line: 2879