Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Return type changed from none to void.verified against source
5.6.0
Errors can now contain more than one item of error data. WP_Error::$additional_data.from the docblock
2.1.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/class-wp-error.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.