update kirby
This commit is contained in:
parent
652262ac94
commit
9c662bcbba
165 changed files with 1757 additions and 598 deletions
|
|
@ -209,7 +209,7 @@ trait UserActions
|
|||
/**
|
||||
* Creates a new User from the given props and returns a new User object
|
||||
*/
|
||||
public static function create(array $props = null): User
|
||||
public static function create(array|null $props = null): User
|
||||
{
|
||||
$data = $props;
|
||||
|
||||
|
|
@ -364,8 +364,8 @@ trait UserActions
|
|||
* Updates the user data
|
||||
*/
|
||||
public function update(
|
||||
array $input = null,
|
||||
string $languageCode = null,
|
||||
array|null $input = null,
|
||||
string|null $languageCode = null,
|
||||
bool $validate = false
|
||||
): static {
|
||||
$user = parent::update($input, $languageCode, $validate);
|
||||
|
|
@ -408,7 +408,7 @@ trait UserActions
|
|||
*/
|
||||
protected function writePassword(
|
||||
#[SensitiveParameter]
|
||||
string $password = null
|
||||
string|null $password = null
|
||||
): bool {
|
||||
return $this->writeSecret('password', $password);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue