Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected namespace for Language class in docs. #2087

Merged
merged 1 commit into from
May 29, 2021

Conversation

MegaChriz
Copy link
Contributor

Description

The docs referenced the wrong namespace for the Language class. This happens in General usage > Document settings > Document Language.
It refers to PhpOffice\PhpWord\ComplexType\Language, but there's no Language class in the namespace PhpOffice\PhpWord\ComplexType. I searched in the tests to figure out where the Language class has moved to and found in PhpOffice\PhpWord\Writer\Word2007\Part\SettingsTest::testLanguage() this had to be PhpOffice\PhpWord\Style\Language.

Checklist:

  • [n/a] I have run composer run-script check --timeout=0 and no errors were reported
  • [n/a] The new code is covered by unit tests (check build/coverage for coverage report)
  • [n/a] I have updated the documentation to describe the changes

The docs referenced the wrong namespace for the Language class. It said ``PhpOffice\PhpWord\ComplexType\Language``, but there's no Language class in the namespace ``PhpOffice\PhpWord\ComplexType``. I searched in the tests to figure out where the Language class has moved to and found in ``PhpOffice\PhpWord\Writer\Word2007\Part\SettingsTest::testLanguage()`` this had to be ``PhpOffice\PhpWord\Style\Language``.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.676% when pulling 1e0157f on MegaChriz:patch-1 into 1bd7cd6 on PHPOffice:master.

@troosan troosan added this to the v0.19.0 milestone May 29, 2021
@troosan troosan merged commit 612fefd into PHPOffice:master May 29, 2021
@troosan troosan modified the milestones: v0.19.0, v0.18.2 May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants