diff --git a/core/modules/views/tests/Drupal/views/Tests/Controller/ViewAjaxControllerTest.php b/core/modules/views/tests/Drupal/views/Tests/Controller/ViewAjaxControllerTest.php
index 7c749aa..bd2caed 100644
--- a/core/modules/views/tests/Drupal/views/Tests/Controller/ViewAjaxControllerTest.php
+++ b/core/modules/views/tests/Drupal/views/Tests/Controller/ViewAjaxControllerTest.php
@@ -177,7 +177,7 @@ protected function setupValidMocks() {
 namespace {
   // @todo Remove once drupal_get_destination is converted to autoloadable code.
   if (!function_exists('drupal_static')) {
-    function drupal_static($key) {
+    function &drupal_static($key) {
       return $key;
     }
   }
