Fixed strict_types exception in PermissionEmbed.

This commit is contained in:
Jan Böhmer 2020-01-08 20:34:35 +01:00
parent 24c33a3bbf
commit 3a081b6413

View file

@ -390,7 +390,7 @@ class PermissionsEmbed
throw new InvalidArgumentException('No permission with the given name is existing!'); 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; return $this;
} }