diff --git a/fivestar.info.yml b/fivestar.info.yml
index da7bb11..c140be1 100644
--- a/fivestar.info.yml
+++ b/fivestar.info.yml
@@ -2,7 +2,7 @@ name: Fivestar
 type: module
 description: 'Enables fivestar ratings on content, users, etc.'
 package: Voting
-core_version_requirement: ^9.2 || ^10
+core_version_requirement: ^9.2 || ^10 || ^11
 dependencies:
   - votingapi:votingapi
 
diff --git a/src/Element/Fivestar.php b/src/Element/Fivestar.php
index b61bf56..e4352b9 100644
--- a/src/Element/Fivestar.php
+++ b/src/Element/Fivestar.php
@@ -3,7 +3,7 @@
 namespace Drupal\fivestar\Element;
 
 use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Render\Element\FormElement;
+use Drupal\Core\Render\Element\FormElementBase;
 use Drupal\Core\Template\Attribute;
 
 /**
@@ -11,7 +11,7 @@ use Drupal\Core\Template\Attribute;
  *
  * @FormElement("fivestar")
  */
-class Fivestar extends FormElement {
+class Fivestar extends FormElementBase {
 
   /**
    * {@inheritdoc}
