In my code, it was because I had not defined currentDomain and basePath as public outside of __construct()
I hope my example was useful for you, I wish for better codes.
I am not an English speaker, I hope I was able to convey my meaning
in my case : i add this #[AllowDynamicProperties] before the class and fixed
I hope my example was useful for you, I wish for better codes.
I am not an English speaker, I hope I was able to convey my meaning