-
Notifications
You must be signed in to change notification settings - Fork 32
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
Feature TR-4391 ensure PHP 8.1 support by the legacy release #321
Feature TR-4391 ensure PHP 8.1 support by the legacy release #321
Conversation
Codecov Report
@@ Coverage Diff @@
## legacy #321 +/- ##
=========================================
Coverage 87.66% 87.66%
- Complexity 8860 8876 +16
=========================================
Files 829 829
Lines 22021 22051 +30
=========================================
+ Hits 19304 19331 +27
- Misses 2717 2720 +3
Continue to review full report at Codecov.
|
sprintf('Undefined property: %s::%s', SerializableDomDocument::class, $property) | ||
); | ||
|
||
$dom->$property; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting this error locally:
Time: 01:53.357, Memory: 84.00 MB
There was 1 error:
1) qtismtest\common\dom\SerializableDomDocumentTest::testAccessingInexistentProperty
Undefined property: qtism\common\dom\SerializableDomDocument::test
/Users/gabriel.soares/repos/qti-sdk/qtism/common/dom/SerializableDomDocument.php:164
/Users/gabriel.soares/repos/qti-sdk/test/qtismtest/common/dom/SerializableDomDocumentTest.php:42
phpvfscomposer:///Users/gabriel.soares/repos/qti-sdk/vendor/phpunit/phpunit/phpunit:97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, problem with 7.1 and 7.2 with correctly catch this exception I research a solution to downgrade the $this->expectWarning(); method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test is passing now, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
- Pull request's target is not
master
TR-4391
Development impact
SerializableDomDocument
no longer extendsDOMDocument
due to a serialization-preventing bug in PHP 8.1 DOMNode serialization on PHP ^8.1 php/php-src#8996ExternalQtiComponent
asSerializableDomDocument
not likeDOMDocument