mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
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
This commit is contained in:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user