Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook_civicrm_config: Remove &. Simplify __DIR__. #235

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

I'm getting notices about this line

  $template = & CRM_Core_Smarty::singleton();

PHP Notice: Only variables should be assigned by reference in /srv/civi-sites/wmff/civicrm/ext/greenwich/greenwich.civix.php on line 94

DIR is just a teensy bit shorter / more readable

I'm getting notices about this line
```
  $template = & CRM_Core_Smarty::singleton();
```

PHP Notice:  Only variables should be assigned by reference in /srv/civi-sites/wmff/civicrm/ext/greenwich/greenwich.civix.php on line 94

__DIR__ is just a teensy bit shorter / more readable
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Jan 26, 2022
Per totten/civix#235 this language construct
appears to be getting more noisy about being bad....
@colemanw
Copy link
Contributor

@totten I don't have merge rights here - can you please merge this

@totten totten merged commit 6c3df46 into totten:master Feb 14, 2022
@totten totten changed the title Update config function hook_civicrm_config: Remove &. Simplify __DIR__. Feb 14, 2022
@eileenmcnaughton eileenmcnaughton deleted the patch-2 branch February 15, 2022 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants