From fd7c1c974c2d71f7ed807342a73cf94c6cf9143d Mon Sep 17 00:00:00 2001 From: "philipp.nardmann" <5041248+PNardman@users.noreply.github.com> Date: Mon, 26 May 2025 06:49:04 +0200 Subject: [PATCH] Fixed PHP 8.4 deprecation (#590) Fixed deprecation warning for str_getcsv in php 8.4, since the default parameter will change, by providing the parameter explicitly. Sidenote: some of the vendor packages still have the same issue with deprecation warnings when running code maintenance tools. They should be updated as well. Closes #587 --- src/Provider/Dce/SystemDceSecurityProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/Dce/SystemDceSecurityProvider.php b/src/Provider/Dce/SystemDceSecurityProvider.php index f3cef41..bf7a9e3 100644 --- a/src/Provider/Dce/SystemDceSecurityProvider.php +++ b/src/Provider/Dce/SystemDceSecurityProvider.php @@ -171,7 +171,7 @@ class SystemDceSecurityProvider implements DceSecurityProviderInterface return ''; } - $sid = str_getcsv(trim((string) $response))[1] ?? ''; + $sid = str_getcsv(trim((string) $response), escape: '\\')[1] ?? ''; if (($lastHyphen = strrpos($sid, '-')) === false) { return '';