diff --git a/src/Umbraco.Core/Deploy/IImageSourceParser.cs b/src/Umbraco.Core/Deploy/IImageSourceParser.cs
index 7b9e3f5e96..0180ec0b3d 100644
--- a/src/Umbraco.Core/Deploy/IImageSourceParser.cs
+++ b/src/Umbraco.Core/Deploy/IImageSourceParser.cs
@@ -12,7 +12,7 @@ public interface IImageSourceParser
/// A list of dependencies.
/// The parsed value.
/// Turns src="/media/..." into src="umb://media/..." and adds the corresponding udi to the dependencies.
- string? ToArtifact(string? value, ICollection dependencies);
+ string ToArtifact(string value, ICollection dependencies);
///
/// Parses an artifact property value and produces an Umbraco property value.
@@ -20,5 +20,5 @@ public interface IImageSourceParser
/// The artifact property value.
/// The parsed value.
/// Turns umb://media/... into /media/....
- string? FromArtifact(string? value);
+ string FromArtifact(string value);
}
diff --git a/src/Umbraco.Core/Deploy/IMacroParser.cs b/src/Umbraco.Core/Deploy/IMacroParser.cs
index 1945b2bdb3..fed9dcc3af 100644
--- a/src/Umbraco.Core/Deploy/IMacroParser.cs
+++ b/src/Umbraco.Core/Deploy/IMacroParser.cs
@@ -8,14 +8,14 @@ public interface IMacroParser
/// Property value.
/// A list of dependencies.
/// Parsed value.
- string? ToArtifact(string? value, ICollection dependencies);
+ string ToArtifact(string value, ICollection dependencies);
///
/// Parses an artifact property value and produces an Umbraco property value.
///
/// Artifact property value.
/// Parsed value.
- string? FromArtifact(string? value);
+ string FromArtifact(string value);
///
/// Tries to replace the value of the attribute/parameter with a value containing a converted identifier.