From 3da86df48f84d35603ccf7b553d64ad112de5863 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 29 Apr 2017 12:58:35 +0200 Subject: [PATCH] Deprecate Node::setLine() --- CHANGELOG.md | 4 +++- lib/PhpParser/Node.php | 2 ++ lib/PhpParser/NodeAbstract.php | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ef936e..eae7a10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) -------------------------- diff --git a/lib/PhpParser/Node.php b/lib/PhpParser/Node.php index 9da9245..6925fd7 100644 --- a/lib/PhpParser/Node.php +++ b/lib/PhpParser/Node.php @@ -29,6 +29,8 @@ interface Node * Sets line the node started in. * * @param int $line Line + * + * @deprecated */ public function setLine($line); diff --git a/lib/PhpParser/NodeAbstract.php b/lib/PhpParser/NodeAbstract.php index 62a96da..3369d44 100644 --- a/lib/PhpParser/NodeAbstract.php +++ b/lib/PhpParser/NodeAbstract.php @@ -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);