backdrop-contrib / coder_upgrade

Helps automate some/most of the work required to upgrade a module from Drupal to Backdrop 1.x
GNU General Public License v2.0
4 stars 7 forks source link

Extra whitespace causes "ERROR: Trying to get property 'data' of non-object on line 283 in /coder_upgrade/conversions/call.inc" #47

Open bugfolder opened 3 years ago

bugfolder commented 3 years ago

Any of the following lines in a file being upgraded will cause the error of the title of this issue:

return system_settings_form( $form);
return system_settings_form($form );
return system_settings_form( $form );

Backdrop coding standards call for no whitespace between the parens and arguments, but users upgrading a custom module that didn't follow coding standards might run into this. If so, the quick fix is to do search-and-replace to eliminate such whitespace before running Coder Upgrade.