| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…roved PHP 8.4 compatibility. Update .gitignore to include .phpunit.result.cache.
|
❌ The last analysis has failed. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM overall, but made one suggestion for improvement.
Sorry, something went wrong.
| trait SerializableField | ||
| { | ||
| public function jsonSerialize(): array|string | ||
| public function jsonSerialize(): mixed |
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.
Sorry, something went wrong.
| $source = simplexml_load_string($data, 'SimpleXMLElement', 0, $ns, $isPrefix); | ||
| if (false === $source) { | ||
| throw new XmlException(libxml_get_errors()); | ||
| } | ||
| $this->source = $source; |
There was a problem hiding this comment.
Good catch!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.