[Config] deprecate cannotBeEmpty() for boolean and numeric nodes
This commit is contained in:
parent
aefd16d4f3
commit
d4473f30f8
@ -30,6 +30,18 @@ class BooleanNodeDefinition extends ScalarNodeDefinition
|
|||||||
$this->nullEquivalent = true;
|
$this->nullEquivalent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @deprecated Deprecated since version 2.8, to be removed in 3.0.
|
||||||
|
*/
|
||||||
|
public function cannotBeEmpty()
|
||||||
|
{
|
||||||
|
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
|
return parent::cannotBeEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiate a Node.
|
* Instantiate a Node.
|
||||||
*
|
*
|
||||||
|
@ -58,4 +58,16 @@ abstract class NumericNodeDefinition extends ScalarNodeDefinition
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @deprecated Deprecated since version 2.8, to be removed in 3.0.
|
||||||
|
*/
|
||||||
|
public function cannotBeEmpty()
|
||||||
|
{
|
||||||
|
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
|
return parent::cannotBeEmpty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user