I just noticed PHPStorm "complaining" that my first argument to wp_insert_post is an object, where an array is expected.
I also noticed that there's no such complaint with wp_upate_post.
It would be somewhat of a pain to refactor my code to use an array for every call to
wp_insert_post, and furthermore the mismatch doesn't seem to cause any issues -- I suppose it is being automatically cast by PHP (?)
Is this something I ought to address or is it safe to leave as-is? I guess this might be more of a PHP concern than WP.
It did seem odd to me that two closely related functions like this have different argument type specifications.