diff --git a/views_php/plugins/views/views_php_plugin_cache.inc b/views_php/plugins/views/views_php_plugin_cache.inc
index 39dca92c..f222b1db 100644
--- a/views_php/plugins/views/views_php_plugin_cache.inc
+++ b/views_php/plugins/views/views_php_plugin_cache.inc
@@ -66,7 +66,8 @@ class views_php_plugin_cache extends views_plugin_cache {
         if ($fresh && !empty($this->options['php_cache_results'])) {
           $code = $this->options['php_cache_results'] . ';';
           $function = function ($view, $plugin, $cache) use ($code) {
-            eval($code);
+            //hacked! See https://www.drupal.org/project/views_php/issues/3217664
+            return eval($code);
           };
 
           ob_start();
@@ -94,7 +95,8 @@ class views_php_plugin_cache extends views_plugin_cache {
         if ($fresh && !empty($this->options['php_cache_output'])) {
           $code = $this->options['php_cache_output'] . ';';
           $function = function ($view, $plugin, $cache) use ($code) {
-            eval($code);
+            //hacked! See https://www.drupal.org/project/views_php/issues/3217664
+            return eval($code);
           };
 
           ob_start();
