Hello,
The problem doesn't come from the createParagraph but from the method you're using to add the style. It needs to set the pStyle array key to don't return the notice:
$docx->addText($text, array('pStyle' => 'myStyle'));
Please check and run the included examples.
Regards.