PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.11.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.11.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | vendor/wpfluent/framework/src/WPFluent/Foundation/RequestGuard.php +3 -1 2.8.12.11.0 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