For Symfony-style event listeners, encourage use of `void` return
authorTim Otten <totten@civicrm.org>
Mon, 31 May 2021 07:32:53 +0000 (00:32 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 31 May 2021 07:36:04 +0000 (00:36 -0700)
commite435f1789f027d325a34c60add85c354aea08e4c
tree9a092ba60da361d3078349fa1e9c42f6d565542a
parent65bc654315177d9a1fade48ba2bb190203e8c316
For Symfony-style event listeners, encourage use of `void` return

When using Symfony-style listeners, all inputs and outputs for the event go
through the event object.

Note that `hook_*()` notation does allow return values, For these functions,
it is *normal* to return void, but some existing hooks rely on returning
array-data.  It could be misleading if we made it appear that all `hook_*()`
examples have to return void.
CRM/Contact/BAO/RelationshipCache.php
Civi/Test/HookInterface.php
tests/phpunit/Civi/Test/ExampleHookTest.php
tests/phpunit/Civi/Test/ExampleSubscriberTest.php