Hello,
Thank you very much for the extensive and informative answer. The new version of PHPDocx 12.5.1 solves the PHP warning. All the PHP notices were put in our log by some custom error handler I was not aware of. Changing that error handler to ignore notices also solves this.
Thanks again, have a nice weekend!