drupal_var_export() passes a third argument to itself, when it uses just two parameters

Created on 13 August 2024, 8 months ago

var_export($var, $prefix = '') contains the following code.

      foreach ($var as $key => $value) {
        $output .= '  ' . ($export_keys ? drupal_var_export($key) . ' => ' : '') . drupal_var_export($value, '  ', FALSE) . ",\n";
      }

The last argument in drupal_var_export($value, ' ', FALSE) is not used from the function and it can be removed.

🐛 Bug report
Status

Active

Version

7.0 ⚰️

Component
Base 

Last updated about 8 hours ago

Created by

🇮🇹Italy apaderno Brescia, 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024