diff --git a/Form/Type/ResourceChoiceType.php b/Form/Type/ResourceChoiceType.php
index <HASH>..<HASH> 100644
--- a/Form/Type/ResourceChoiceType.php
+++ b/Form/Type/ResourceChoiceType.php
@@ -27,7 +27,7 @@ final class ResourceChoiceType extends AbstractType
     /**
      * @var ServiceRegistryInterface
      */
-    protected $resourceRepositoryRegistry;
+    private $resourceRepositoryRegistry;
 
     /**
      * @param ServiceRegistryInterface $resourceRepositoryRegistry
diff --git a/Form/Type/ResourceToIdentifierType.php b/Form/Type/ResourceToIdentifierType.php
index <HASH>..<HASH> 100644
--- a/Form/Type/ResourceToIdentifierType.php
+++ b/Form/Type/ResourceToIdentifierType.php
@@ -28,12 +28,12 @@ final class ResourceToIdentifierType extends AbstractType
     /**
      * @var RepositoryInterface
      */
-    protected $repository;
+    private $repository;
 
     /**
      * @var MetadataInterface
      */
-    protected $metadata;
+    private $metadata;
 
     /**
      * @param RepositoryInterface $repository
[Core] Private fields in final forms