Silence deprecations / PHP 8.4 compatibility (non-breaking)#33
Open
redcuillin wants to merge 1 commit into
Open
Silence deprecations / PHP 8.4 compatibility (non-breaking)#33redcuillin wants to merge 1 commit into
redcuillin wants to merge 1 commit into
Conversation
…roved PHP 8.4 compatibility. Update .gitignore to include .phpunit.result.cache.
|
❌ The last analysis has failed. |
Author
|
Further to request in #32 |
Closed
rudolfbyker
approved these changes
May 20, 2026
Contributor
rudolfbyker
left a comment
There was a problem hiding this comment.
LGTM overall, but made one suggestion for improvement.
| trait SerializableField | ||
| { | ||
| public function jsonSerialize(): array|string | ||
| public function jsonSerialize(): mixed |
Contributor
There was a problem hiding this comment.
This is technically correct, but loses useful information. Suggestion: Add the missing information via PHPDoc, like this:
/**
* @returns array|string
*/
public function jsonSerialize(): mixedThe same applies to many other places in this PR.
Comment on lines
+42
to
+46
| $source = simplexml_load_string($data, 'SimpleXMLElement', 0, $ns, $isPrefix); | ||
| if (false === $source) { | ||
| throw new XmlException(libxml_get_errors()); | ||
| } | ||
| $this->source = $source; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add type hinting and return types for PHP 8.4 compatibility. Update .gitignore to include .phpunit.result.cache.
Silences deprecation warnings if using PHP8.4 without breaking compatibility with earlier versions.