Converts this:
define('CDN_DRUPAL_ROOT_VARIABLE', 'cdn_drupal_root');
to this:
define('CDN_\Drupal::root()_VARIABLE', 'cdn_drupal_root');
leading to error:
Class constants cannot be defined or redefined cdn.constants.inc:25 [warning]
Oops. :)
Comments
Comment #1
phenaproximaThe real solution here is that the grep plugin needs to be changed so that it filters to instances of Pharborist\Constants\ConstantNode before doing the replace. It'll take a dedicated plugin. I can take this on if you like.
Comment #2
webchickOooh. Yeah that sounds like it'd work. And sure, if you'd like!