Skip to content

Commit

Permalink
Deprecate Node::setLine()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Apr 29, 2017
1 parent 901b895 commit 3da86df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
--------------------------
Expand Down
2 changes: 2 additions & 0 deletions lib/PhpParser/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public function getLine();
* Sets line the node started in.
*
* @param int $line Line
*
* @deprecated
*/
public function setLine($line);

Expand Down
2 changes: 2 additions & 0 deletions lib/PhpParser/NodeAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function getLine() {
* Sets line the node started in.
*
* @param int $line Line
*
* @deprecated
*/
public function setLine($line) {
$this->setAttribute('startLine', (int) $line);
Expand Down

0 comments on commit 3da86df

Please sign in to comment.