mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-11 01:39:50 +01:00
Fixed strict_types exception in PermissionEmbed.
This commit is contained in:
@@ -390,7 +390,7 @@ class PermissionsEmbed
|
||||
throw new InvalidArgumentException('No permission with the given name is existing!');
|
||||
}
|
||||
|
||||
$this->{$permission_name} = static::writeBitPair($this->{$permission_name}, $bit_n, $new_value);
|
||||
$this->{$permission_name} = static::writeBitPair((int) $this->{$permission_name}, $bit_n, $new_value);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user