-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
NFC cleanup in test class #25524
NFC cleanup in test class #25524
Conversation
(Standard links)
|
@@ -518,7 +516,7 @@ public function testDupesByParams() { | |||
* Locks in expected params | |||
* | |||
*/ | |||
public function hook_civicrm_findDuplicates($dedupeParams, &$dedupeResults, $contextParams) { | |||
public function hook_civicrm_findDuplicates($dedupeParams, $dedupeResults, $contextParams) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't match the dev docs, and the return at the bottom. Are the docs wrong?
Otherwise everything in the PR looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think the docs are right and the test is half-right. The signature was correct, but the return is wrong, it just doesn't come up because the hook implementation never changes the value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy yeah - I normally remove the pass by ref in extension hooks too if they don't leverage it - just makes it all clearer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy I didn't want this tidy up to be blocking on the actual fix - #25527 - so I reverted it back & added php doc block to ignore it.
47b0a0e
to
3e823c3
Compare
unrelated style-check fail which isn't really a style fail. I still think the |
No description provided.