Skip to content

Commit 2093b19

Browse files
authored
[TASK] Drop getLineNo() from the Renderable interface (#1038)
The concept of being able to get rendered is logically independent from having a position in the input stream. Hence, both concepts should not be conflated in the `Renderable` interface. (We might want to add a dedicated interface for classes that are linked to specific points in the input stream later, though.)
1 parent 3315773 commit 2093b19

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Please also have a look at our
3939

4040
### Removed
4141

42+
- Drop `getLineNo()` from the `Renderable` interface (#1038)
4243
- Remove `OutputFormat::level()` (#874)
4344
- Remove expansion of shorthand properties (#838)
4445
- Remove `Parser::setCharset/getCharset` (#808)

src/Renderable.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,4 @@ interface Renderable
1212
public function __toString(): string;
1313

1414
public function render(OutputFormat $outputFormat): string;
15-
16-
/**
17-
* @return int<0, max>
18-
*/
19-
public function getLineNo(): int;
2015
}

0 commit comments

Comments
 (0)