Getting array_merge(): Argument #2 is not an array on register_post_type
The problem is that capabilities argument should be an array and should be written like this: ‘capabilities’ => array(‘remove_users’), instead of this: ‘capabilities’ => ‘remove_users’, because capabilities argument always accepts array of values, even if it’s single value.