feature #15285 [Config] deprecate cannotBeEmpty() for boolean and numeric nodes (xabbuh)
This PR was merged into the 2.8 branch.
Discussion
----------
[Config] deprecate cannotBeEmpty() for boolean and numeric nodes
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
d4473f3
[Config] deprecate cannotBeEmpty() for boolean and numeric nodes
This commit is contained in:
commit
0de8905919
@ -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