We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f574375 commit 266108fCopy full SHA for 266108f
README.md
@@ -89,11 +89,12 @@ $stdio->write('hello');
89
$stdio->write(" world\n");
90
```
91
92
-The `overwrite($text)` method can be used to overwrite/replace the last
+[Deprecated] The `overwrite($text)` method can be used to overwrite/replace the last
93
incomplete line with the given text:
94
95
```php
96
$stdio->write('Loading…');
97
+// deprecated
98
$stdio->overwrite('Done!');
99
100
src/Stdio.php
@@ -167,6 +167,9 @@ public function writeln($line)
167
$this->write($line . PHP_EOL);
168
}
169
170
+ /**
171
+ * @deprecated
172
+ */
173
public function overwrite($data = '')
174
{
175
if ($this->incompleteLine !== '') {
0 commit comments