Commit 59833538 authored by catch's avatar catch

Issue #2978788 by eliclaggett, amateescu:...

Issue #2978788 by eliclaggett, amateescu: \Drupal\Core\TypedData\TypedData::__construct() should type hint its $definition argument to DataDefinitionInterface
parent befb1c18
......@@ -59,12 +59,8 @@ public static function createInstance($definition, $name = NULL, TraversableType
* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment