Skip to content

Commit 6c0628b

Browse files
committed
Amend error on appsecMockEnabled function
1 parent c421615 commit 6c0628b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/Appsec/Mock.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ public function getEvents()
8282
}
8383
}
8484

85-
function appsecMockEnabled() {
86-
return getenv('APPSEC_MOCK_ENABLED') === "true";
85+
if (!function_exists('datadog\appsec\appsecMockEnabled')) {
86+
function appsecMockEnabled() {
87+
return getenv('APPSEC_MOCK_ENABLED') === "true";
88+
}
8789
}
8890

8991
if (!function_exists('datadog\appsec\track_user_login_success_event')) {

0 commit comments

Comments
 (0)