When generating automatic instance of a content type that has float and int fields the following warning is fired upon generation.
Warning: rand() expects parameter 2 to be integer, float given in _number_devel_generate() (line 43 of /var/www/server/web/sites/all/modules/contrib/devel/devel_generate/number.devel_generate.inc
Apparently there is a type issue with the $max variable at line 43.
$object_field['value'] = round((rand($min, $max) + $decimal), $scale);
$max is a float when rand expect an int. Beside the warning on generation, there is a persistent warning fired whenever a node generated by devel generate is displayed on a page.
Notice: Undefined index: text_processing in _text_sanitize() (line 321 of /var/www/server/web/modules/field/modules/text/text.module).
Drupal 7.68
Devel 7.x-1.7
PHP 7.3
Comments
Comment #2
salvisIs this issue still present in the -dev version? Does anyone else see it?
Patch?