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
if ($automaticPadding > Encryption::MAX_PAYLOAD_LENGTH) {
280
-
thrownew \Exception('Automatic padding is too large. Max is '.Encryption::MAX_PAYLOAD_LENGTH.'. Recommended max is '.Encryption::MAX_COMPATIBILITY_PAYLOAD_LENGTH.' for compatibility reasons (see README).');
281
-
} elseif ($automaticPadding < 0) {
282
-
thrownew \Exception('Padding length should be positive or zero.');
thrownew \ValueError('Automatic padding is too large. Max is '.Encryption::MAX_PAYLOAD_LENGTH.'. Recommended max is '.Encryption::MAX_COMPATIBILITY_PAYLOAD_LENGTH.' for compatibility reasons (see README).');
289
287
}
288
+
if($automaticPadding < 0) {
289
+
thrownew \ValueError('Padding length should be positive or zero.');
0 commit comments