From 4cae6c8914079dfe20dcf09674b79f19ee23157c Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 22 Mar 2022 12:42:55 +0100 Subject: [PATCH] Removed redundant string cast, now correctly identified by `vimeo/psalm:^4.20` `substr()` only fails when one of the inputs is not a `string`, but that no longer holds true as per `php:^8.0`, since the input must be a `string` upfront. --- 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 6d6240b..7ff4076 100644 --- a/src/Provider/Dce/SystemDceSecurityProvider.php +++ b/src/Provider/Dce/SystemDceSecurityProvider.php @@ -229,6 +229,6 @@ class SystemDceSecurityProvider implements DceSecurityProviderInterface return ''; } - return trim((string) substr($sid, $lastHyphen + 1)); + return trim(substr($sid, $lastHyphen + 1)); } }