Fixing more errors with nullable reference types

This commit is contained in:
Nikolaj Geisle
2022-02-24 09:24:56 +01:00
parent a8cf6ee127
commit ed13237177
186 changed files with 1737 additions and 1389 deletions

View File

@@ -142,7 +142,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
/// <remarks>
/// This will first clear the permissions for this user and entities and recreate them
/// </remarks>
public void ReplacePermissions(int groupId, IEnumerable<char> permissions, params int[] entityIds)
public void ReplacePermissions(int groupId, IEnumerable<char>? permissions, params int[] entityIds)
{
if (entityIds.Length == 0)
{
@@ -340,7 +340,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
protected override ContentPermissionSet PerformGet(int id) =>
throw new InvalidOperationException("This method won't be implemented.");
protected override IEnumerable<ContentPermissionSet> PerformGetAll(params int[] ids) =>
protected override IEnumerable<ContentPermissionSet> PerformGetAll(params int[]? ids) =>
throw new InvalidOperationException("This method won't be implemented.");
protected override IEnumerable<ContentPermissionSet> PerformGetByQuery(IQuery<ContentPermissionSet> query) =>