Skip to content

Make Scope.Environment non nullable (next major) #5388

Closed

Description

@jamescrosswell

As of #5365, Scope.Environment can't be null:

if (value is null)
{
Options.LogDebug("Environment cannot be null. Reverting to default value from the options.");
field = Options.Environment;
}

We may as well reflect that in the property declaration (which is currently string?).

Note

Breaking change so will need to wait till next major

Activity

  1. added
    Breaking Change
    Next Major
    on Jul 15, 2026
  2. linear-code commented on Jul 15, 2026

    @linear-code
  3. added
    .NET
    on Jul 15, 2026
  4. changed the title [-]Make Scope.Enviroment non nullable (next major)[/-] [+]Make Scope.Environment non nullable (next major)[/+] on Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETBreaking ChangeImprovementNext Major

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions