You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded to php 7.4 and I get this issue. Help me please?
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\xampp\htdocs\proyecto\vendor\abraham\twitteroauth\src\SignatureMethod.php on line 61
/**
* Verifies that a given signature is correct
*
* @param Request $request
* @param Consumer $consumer
* @param Token $token
* @param string $signature
*
* @return bool
*/
public function checkSignature(Request $request, Consumer $consumer, Token $token, $signature)
{
$built = $this->buildSignature($request, $consumer, $token);
// Check for zero length, although unlikely here
if (strlen($built) == 0 || strlen($signature) == 0) {
return false;
}
if (strlen($built) != strlen($signature)) {
return false;
}
// Avoid a timing leak with a (hopefully) time insensitive compare
$result = 0;
for ($i = 0; $i < strlen($signature); $i++) {
$result |= ord($built{$i}) ^ ord($signature{$i});
}
return $result == 0;
}
The text was updated successfully, but these errors were encountered:
I upgraded to php 7.4 and I get this issue. Help me please?
Deprecated: Array and string offset access syntax with curly braces is deprecated in C:\xampp\htdocs\proyecto\vendor\abraham\twitteroauth\src\SignatureMethod.php on line 61
The text was updated successfully, but these errors were encountered: