When trying to install this module in an environment using PHP 8.3, I received the error Fatal error: Declaration of Drupal\oauth2_server\Entity\Scope::__sleep() must be compatible with Drupal\Core\Config\Entity\ConfigEntityBase::__sleep(): array
for both the Scope and Client classes. This is because of a signature mismatch because of PHP LSP enforcement requiring a method in a class that extends another to have the same return type as the method being extended.
drush en oauth2_server
Update the methods that are inherited to match the parent signatures.
Active
2.0
Code