PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | vendor/wpfluent/framework/src/WPFluent/Foundation/RequestGuard.php +3 -1 1.5.3 → 1.6.5 View file →
@@ -85,8 +85,10 @@
85 85 throw $e;
86 86 } else {
87 87 App::make()->doCustomAction('handle_exception', $e);
88 88 }
89 +
90 + return [];
89 91 }
90 92 }
91 93
92 94 /**
@@ -96,9 +98,9 @@
96 98 */
97 99 protected function shouldThrowException()
98 100 {
99 101 $isTrue = $this->isRest();
100 - $isTrue = $isTrue || str_contains('test', App::make()->env());
102 + $isTrue = $isTrue || str_contains(App::make()->env(), 'test');
101 103 $isTrue = $isTrue || str_contains(strtolower(php_sapi_name()), 'cli');
102 104 return $isTrue;
103 105 }
104 106