Merge pull request #13322 from JMAConsulting/dev-report-5
[civicrm-core.git] / Civi / Core / Resolver.php
index 70654bac29a43cbf64d6a114cdadf4150a074eb5..0d71d185e7fd70e0bd9df207fe430e30ef3b83b7 100644 (file)
@@ -53,7 +53,7 @@ class Resolver {
    * @param string|array $id
    *   A callback expression; any of the following.
    *
-   * @return array
+   * @return array|callable
    *   A PHP callback. Do not serialize (b/c it may include an object).
    * @throws \RuntimeException
    */
@@ -277,6 +277,7 @@ class ResolverGlobalCallback {
     }
     elseif ($this->mode === 'setter') {
       \CRM_Utils_Array::pathSet($GLOBALS, explode('/', $this->path), $arg1);
+      return NULL;
     }
     else {
       throw new \RuntimeException("Resolver failed: global:// must specify getter or setter mode.");