diff --git a/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs b/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs
index 3bf2f21cfa..2f584119ee 100644
--- a/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs
+++ b/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs
@@ -19,7 +19,7 @@ public static class ObjectExtensions
/// The nullable object.
/// The type of the object.
/// The non-nullable object corresponding to .
- [return: NotNullIfNotNull("obj")]
+ [return: NotNull]
public static T AsNonNull(this T? obj) => obj!;
///