-
Notifications
You must be signed in to change notification settings - Fork 2.7k
PHP7 Update - Renamed String class to SharedString #698
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
Conversation
This build is failing because of mpdf. mpdf is still using the old constructor style that is not suitable for PHP7. A fix was pulled into mpdf's development branch ( mpdf/mpdf#68 ) but has not yet been tagged and thus is not pulled in via composer package. |
I have updated composer.json to pull dev-development for mpdf, which has merged the constructor fix for PHP7. In the future, once the fix is pulled into a release tag, we need to change the composer.json to a stable version. Hopefully, this won't take too long. |
Partially resolved in scope of #658. |
what does this need to be merged? |
Some thoughts. mPDF 6.1 requires PHP 5.4+ while PHPWord - PHP 5.3.3+. So, first of all #355 should be resolved. |
PHP7 now reserves the class name String. PHPWord utilizes String as a class name, thus PHPWord presently does not work with PHP7. This PR renames the class to SharedString and updates it usage through the library and in the tests.