Update package name in composer, update dependencies.
Ensures command execution always ends the log properly, even if there's an error getting the list of sites.
Also, updated all dependencies and added PHP 8.2 requirement.