diff --git a/src/Content/VersionId.php b/src/Content/VersionId.php index 6d8f7eb5ef..62b2c5be47 100644 --- a/src/Content/VersionId.php +++ b/src/Content/VersionId.php @@ -79,9 +79,9 @@ public static function default(ModelWithContent $model): static /** * Creates a VersionId instance from a simple string value */ - public static function from(self|string $value): static + public static function from(VersionId|string $value): static { - if ($value instanceof static) { + if ($value instanceof VersionId) { return $value; }