Skip to content

Commit 735bde0

Browse files
committed
Drop pointless abstract methods
Abstract methods that duplicate what already is required by the implementing interface do not add any value. Also add a type annotation to the interface.
1 parent d9fc105 commit 735bde0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Renderable.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
interface Renderable
66
{
7+
/**
8+
* @return string
9+
*/
710
public function __toString();
811

912
/**

src/Value/Value.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,4 @@ public function getLineNo()
151151
{
152152
return $this->iLineNo;
153153
}
154-
155-
//Methods are commented out because re-declaring them here is a fatal error in PHP < 5.3.9
156-
//public abstract function __toString();
157-
//public abstract function render(\Sabberworm\CSS\OutputFormat $oOutputFormat);
158154
}

0 commit comments

Comments
 (0)