Skip to content

Commit 96e5773

Browse files
authored
[12.x] Add missing @throws annotations to Encrypter class (#57451)
- Add @throws DecryptException to ensureTagIsValid() method - Add @throws RuntimeException to previousKeys() method These methods throw exceptions but were missing proper @throws annotations in their docblocks.
1 parent e42c4fd commit 96e5773

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Encryption/Encrypter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ protected function validMacForKey(#[\SensitiveParameter] $payload, $key)
302302
*
303303
* @param string $tag
304304
* @return void
305+
*
306+
* @throws \Illuminate\Contracts\Encryption\DecryptException
305307
*/
306308
protected function ensureTagIsValid($tag)
307309
{
@@ -359,6 +361,8 @@ public function getPreviousKeys()
359361
*
360362
* @param array $keys
361363
* @return $this
364+
*
365+
* @throws \RuntimeException
362366
*/
363367
public function previousKeys(array $keys)
364368
{

0 commit comments

Comments
 (0)