PHP 8.2 adds a new deprecation to the archive fdomdocument library, which breaks phpdox:
PHP Version: 8.2.4 (Linux)
PHPDox Version: eb943cb-dirty
ErrorException: E_DEPRECATED
Location: /opt/phpdox/vendor/theseer/fdomdocument/src/fDOMDocument.php (Line 251)
DOMDocument::save(): Passing null to parameter #2 ($options) of type int is deprecated
No stacktrace available
public DOMDocument::save(string $filename, int $options = 0): int|false
Library is documented to still work on PHP 7, so this isn't a proper fix, but last year I used this code on a development server to fix all deprecations:
PHP 8.2 adds a new deprecation to the archive fdomdocument library, which breaks phpdox:
The DOMDocument::save signature is:
public DOMDocument::save(string $filename, int $options = 0): int|false
Library is documented to still work on PHP 7, so this isn't a proper fix, but last year I used this code on a development server to fix all deprecations:
To stay compatible with PHP 7, and as 0 is the default value for $options, could we have more simply this instead?