Deprecate Node::setLine()

This commit is contained in:
Nikita Popov 2017-04-29 12:58:35 +02:00
parent 901b895c02
commit 3da86df48f
3 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,9 @@
Version 3.0.6-dev
-----------------
Nothing yet.
### Deprecated
* The `Node::setLine()` method has been deprecated.
Version 3.0.5 (2017-03-05)
--------------------------

View File

@ -29,6 +29,8 @@ interface Node
* Sets line the node started in.
*
* @param int $line Line
*
* @deprecated
*/
public function setLine($line);

View File

@ -37,6 +37,8 @@ abstract class NodeAbstract implements Node, \JsonSerializable
* Sets line the node started in.
*
* @param int $line Line
*
* @deprecated
*/
public function setLine($line) {
$this->setAttribute('startLine', (int) $line);