Not sure what went wrong. After changing the structure the error didnt occur anymore. I'm now calling the method from another class instead of my CreateDocx-wrapper and it works as intended.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now