From 8a875db76fec9f3d756a0017ae71bfb1a5d1c1ab Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Mon, 9 Sep 2024 15:50:38 +0100
Subject: [PATCH] use new propertynames interface

---
 src/post_hoc.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/post_hoc.jl b/src/post_hoc.jl
index b071ad3..77308ad 100644
--- a/src/post_hoc.jl
+++ b/src/post_hoc.jl
@@ -110,7 +110,7 @@ end
 function adjust_helper(block::AbstractBlock, used_names::UsedNamesType; kwargs...)
     params = []
 
-    for prop_name in propertynames(block)
+    for prop_name in fieldnames(typeof(block))
         push!(params, adjust_helper(getproperty(block, prop_name), used_names; kwargs...))
     end
     new_block = typeof(block)(params...)
-- 
GitLab