Skip to content

Commit cb6d257

Browse files
authored
Document that model encrypter can also be null (#45574)
1 parent a656303 commit cb6d257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ trait HasAttributes
179179
/**
180180
* The encrypter instance that is used to encrypt attributes.
181181
*
182-
* @var \Illuminate\Contracts\Encryption\Encrypter
182+
* @var \Illuminate\Contracts\Encryption\Encrypter|null
183183
*/
184184
public static $encrypter;
185185

@@ -1289,7 +1289,7 @@ protected function castAttributeAsEncryptedString($key, $value)
12891289
/**
12901290
* Set the encrypter instance that will be used to encrypt attributes.
12911291
*
1292-
* @param \Illuminate\Contracts\Encryption\Encrypter $encrypter
1292+
* @param \Illuminate\Contracts\Encryption\Encrypter|null $encrypter
12931293
* @return void
12941294
*/
12951295
public static function encryptUsing($encrypter)

0 commit comments

Comments
 (0)