From 5bd4ad39a55e35c380d28ead00a6afcd349a3514 Mon Sep 17 00:00:00 2001 From: brammeleman <43443291+brammeleman@users.noreply.github.com> Date: Tue, 29 Jun 2021 11:57:41 +0200 Subject: [PATCH] fixed code example classes not found and missing dollar sign --- docs/general.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/general.rst b/docs/general.rst index 0d08739729..145df162ab 100644 --- a/docs/general.rst +++ b/docs/general.rst @@ -192,11 +192,11 @@ You can also specify the status of the spell and grammar checks, marking spellin .. code-block:: php - $proofState = new ProofState(); - $proofState->setGrammar(ProofState::CLEAN); - $proofState->setSpelling(ProofState::DIRTY); + $proofState = new \PhpOffice\PhpWord\ComplexType\ProofState(); + $proofState->setGrammar(\PhpOffice\PhpWord\ComplexType\ProofState::CLEAN); + $proofState->setSpelling(\PhpOffice\PhpWord\ComplexType\ProofState::DIRTY); - $phpWord->getSettings()->setProofState(proofState); + $phpWord->getSettings()->setProofState($proofState); Track Revisions ~~~~~~~~~~~~~~~