-
- Downloads
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.
Showing
- CRM/Contact/BAO/RelationshipCache.php 1 addition, 1 deletionCRM/Contact/BAO/RelationshipCache.php
- Civi/Test/HookInterface.php 2 additions, 2 deletionsCivi/Test/HookInterface.php
- tests/phpunit/Civi/Test/ExampleHookTest.php 3 additions, 3 deletionstests/phpunit/Civi/Test/ExampleHookTest.php
- tests/phpunit/Civi/Test/ExampleSubscriberTest.php 3 additions, 3 deletionstests/phpunit/Civi/Test/ExampleSubscriberTest.php
Loading
Please register or sign in to comment