summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/TypedData.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-06-15 11:07:08 (GMT)
committerNathaniel Catchpole2018-06-15 11:07:08 (GMT)
commit59833538ee21caa5ad5d3fcfc236b041a078c9d7 (patch)
tree472c39757574a01b63390b5317bb5c8f6a2e4e13 /core/lib/Drupal/Core/TypedData/TypedData.php
parentbefb1c182c1ece3c57e6151c9a635dfbc1c95203 (diff)
Issue #2978788 by eliclaggett, amateescu: \Drupal\Core\TypedData\TypedData::__construct() should type hint its $definition argument to DataDefinitionInterface
Diffstat (limited to 'core/lib/Drupal/Core/TypedData/TypedData.php')
-rw-r--r--core/lib/Drupal/Core/TypedData/TypedData.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/lib/Drupal/Core/TypedData/TypedData.php b/core/lib/Drupal/Core/TypedData/TypedData.php
index 243d48a..bc1702a 100644
--- a/core/lib/Drupal/Core/TypedData/TypedData.php
+++ b/core/lib/Drupal/Core/TypedData/TypedData.php
@@ -59,12 +59,8 @@ abstract class TypedData implements TypedDataInterface, PluginInspectionInterfac
* root of a typed data tree. Defaults to NULL.
*
* @see \Drupal\Core\TypedData\TypedDataManager::create()
- *
- * @todo When \Drupal\Core\Config\TypedConfigManager has been fixed to use
- * class-based definitions, type-hint $definition to
- * DataDefinitionInterface. https://www.drupal.org/node/1928868
*/
- public function __construct($definition, $name = NULL, TypedDataInterface $parent = NULL) {
+ public function __construct(DataDefinitionInterface $definition, $name = NULL, TypedDataInterface $parent = NULL) {
$this->definition = $definition;
$this->parent = $parent;
$this->name = $name;