Skip to content

Commit f195d28

Browse files
authored
Merge pull request #2111 from brammeleman/patch-1
Fixed code example
2 parents b2dfa65 + 5bd4ad3 commit f195d28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/general.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ You can also specify the status of the spell and grammar checks, marking spellin
192192

193193
.. code-block:: php
194194
195-
$proofState = new ProofState();
196-
$proofState->setGrammar(ProofState::CLEAN);
197-
$proofState->setSpelling(ProofState::DIRTY);
195+
$proofState = new \PhpOffice\PhpWord\ComplexType\ProofState();
196+
$proofState->setGrammar(\PhpOffice\PhpWord\ComplexType\ProofState::CLEAN);
197+
$proofState->setSpelling(\PhpOffice\PhpWord\ComplexType\ProofState::DIRTY);
198198
199-
$phpWord->getSettings()->setProofState(proofState);
199+
$phpWord->getSettings()->setProofState($proofState);
200200
201201
Track Revisions
202202
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)