wp-includes/deprecated.php:767Sets the categories that the post ID belongs to.
$blogidintoptional'1'$post_idintoptional0$post_categoriesarrayoptionalarray()bool|mixedfunction wp_set_post_cats($blogid = '1', $post_id = 0, $post_categories = array()) { _deprecated_function( __FUNCTION__, '2.1.0', 'wp_set_post_categories()' ); return wp_set_post_categories($post_id, $post_categories);}Introduced in 1.0.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/deprecated.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.